Fix tests

This commit is contained in:
Iacopo Spalletti 2016-08-03 10:58:47 +02:00
parent 0410ac1f8c
commit 56b472eefc
No known key found for this signature in database
GPG key ID: BDCBC2EB289F60C6
2 changed files with 3 additions and 2 deletions

View file

@ -115,12 +115,12 @@ class AdminTest(BaseTest):
# 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):

View file

@ -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