Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yakky committed Aug 3, 2016
1 parent 0410ac1 commit 56b472e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_models.py
Expand Up @@ -115,12 +115,12 @@ def test_admin_category_views(self):

# Add view only has an empty form - no type
response = post_admin.add_view(request)
self.assertNotContains(response, '<input class="vTextField" id="id_name" maxlength="255" name="name" type="text" value="category 1" />')
self.assertNotContains(response, 'id="id_name" maxlength="255" name="name" type="text" value="category 1" />')
self.assertContains(response, '<option value="%s">Blog / sample_app</option>' % self.app_config_1.pk)

# Changeview is 'normal', with a few preselected items
response = post_admin.change_view(request, str(self.category_1.pk))
self.assertContains(response, '<input class="vTextField" id="id_name" maxlength="255" name="name" type="text" value="category 1" />')
self.assertContains(response, 'id="id_name" maxlength="255" name="name" type="text" value="category 1" />')
self.assertContains(response, '<option value="%s" selected="selected">Blog / sample_app</option>' % self.app_config_1.pk)

def test_admin_category_parents(self):
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Expand Up @@ -43,6 +43,7 @@ deps =
sphinx
sphinx-rtd-theme
html5lib<0.99999999
Django>=1.9,<1.10
-rrequirements-test.txt
changedir=docs
skip_install = true
Expand Down

0 comments on commit 56b472e

Please sign in to comment.