Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AE UTBM
Sith
Commits
b4c24ee9
Commit
b4c24ee9
authored
May 21, 2019
by
Sli
Browse files
Merge branch 'bugfix' into 'master'
counter: fix SellingFormBase import See merge request ae/Sith!205
parents
9f2a0dee
275b89cd
Pipeline
#1772
passed with stage
in 15 minutes and 21 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
club/tests.py
View file @
b4c24ee9
...
...
@@ -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
)
club/views.py
View file @
b4c24ee9
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment