Skip to content

Commit

Permalink
forum/tests/test_forms.py: include a test with empty tags
Browse files Browse the repository at this point in the history
  • Loading branch information
gasche authored and artragis committed Nov 11, 2018
1 parent f8d4404 commit ae53acd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions zds/forum/tests/tests_forms.py
Expand Up @@ -22,6 +22,17 @@ def test_valid_topic_form(self):

self.assertTrue(form.is_valid())

def test_valid_topic_form_empty_tags(self):
data = {
'title': 'Test Topic Title',
'subtitle': 'Test Topic Subtitle',
'tags': '',
'text': 'Test Topic Text'
}
form = TopicForm(data=data)

self.assertTrue(form.is_valid())

def test_invalid_topic_form_missing_title(self):
""" Test when title is missing """
data = {
Expand Down

0 comments on commit ae53acd

Please sign in to comment.