mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-21 21:53:30 +00:00
club: fix SellingFormBase import
This commit is contained in:
parent
9f2a0deeb9
commit
275b89cdf0
@ -691,3 +691,23 @@ class MailingFormTest(TestCase):
|
||||
self.assertNotContains(response, "comunity@git.an")
|
||||
self.assertNotContains(response, "richard@git.an")
|
||||
self.assertNotContains(response, "krophil@git.an")
|
||||
|
||||
|
||||
class ClubSellingViewTest(TestCase):
|
||||
"""
|
||||
Perform basics tests to ensure that the page is available
|
||||
"""
|
||||
|
||||
def setUp(self):
|
||||
call_command("populate")
|
||||
self.ae = Club.objects.filter(unix_name="ae").first()
|
||||
|
||||
def test_page_not_internal_error(self):
|
||||
"""
|
||||
Test that the page does not return and internal error
|
||||
"""
|
||||
self.client.login(username="skia", password="plop")
|
||||
response = self.client.get(
|
||||
reverse("club:club_sellings", kwargs={"club_id": self.ae.id})
|
||||
)
|
||||
self.assertFalse(response.status_code == 500)
|
||||
|
@ -59,7 +59,7 @@ from com.views import (
|
||||
)
|
||||
|
||||
from club.models import Club, Membership, Mailing, MailingSubscription
|
||||
from club.forms import MailingForm, ClubEditForm, ClubMemberForm
|
||||
from club.forms import MailingForm, ClubEditForm, ClubMemberForm, SellingsFormBase
|
||||
|
||||
|
||||
class ClubTabsMixin(TabedViewMixin):
|
||||
|
Loading…
Reference in New Issue
Block a user