Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy committed Oct 4, 2019
1 parent f9b6721 commit dc08f0e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ install:
- pip install 'coverage<4' # coverage>=4 has issues with python3
- pip install -q $DJANGO_VERSION
- pip install -q coveralls
- pip install django-admin-tools
- pip install -r requirements.txt

matrix:
Expand Down
4 changes: 2 additions & 2 deletions admin_tools_stats/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ def test_admin_dashboard_page_post(self):
response = self.client.post('/admin/', {'select_box_user_graph': 'true'})
self.assertContains(
response,
'<input type="hidden" name="select_box_user_graph" value="true">',
'<input type="hidden" class="hidden_graph_key" name="graph_key" value="user_graph">',
html=True,
)
self.assertContains(
response,
'<option value="true" selected="selected">Active</option>',
'<option value="true">Active</option>',
html=True,
)

Expand Down
3 changes: 2 additions & 1 deletion demoproject/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
django-nvd3
django-bower
django-bower
django-admin-tools

0 comments on commit dc08f0e

Please sign in to comment.