Fix tests
This commit is contained in:
parent
0410ac1f8c
commit
56b472eefc
2 changed files with 3 additions and 2 deletions
|
@ -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):
|
||||
|
|
1
tox.ini
1
tox.ini
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue