forked from ijasperyang/django-survey
-
-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix None displayed when category description was empty (#177)
- Loading branch information
1 parent
09a7c27
commit f1eca4b
Showing
3 changed files
with
93 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import logging | ||
|
||
from django.urls.base import reverse | ||
|
||
from survey.tests import BaseTest | ||
|
||
LOGGER = logging.getLogger(__name__) | ||
|
||
|
||
class TestSurveyCategory(BaseTest): | ||
def test_category_description_none_not_shown(self): | ||
""" | ||
Checks that blank category description is not shown (no 'None'). | ||
""" | ||
response = self.client.get(reverse("survey-detail", args=(13,))) | ||
self.assertNotContains(response, "None") |