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 291d5b1 commit 7b5efe2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 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
6 changes: 3 additions & 3 deletions admin_tools_stats/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def test_admin_dashboard_page(self):
)
self.assertContains(
response,
'<svg style="width:100%;height:300px;"></svg>',
'<svg style="width:100%;height:300px;" height="450"></svg>',
html=True,
)
self.assertContains(
Expand All @@ -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
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ django-jsonfield>=0.9.2
django-qsstats-magic>=0.7.2
django-nvd3>=0.5.0
django-bower
python-dateutil
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def parse_dependency_links(file_name):
version=admin_tools_stats.__version__,
description='django-admin-charts - Easily configurable charts statistics for `django-admin` and `django-admin-tools`',
long_description=read('README.rst'),
author='Petr Dlouhý',
author='Petr Dlouhy',
author_email='petr.dlouhy@email.cz',
url='https://github.com/PetrDlouhy/django-admin-charts',
include_package_data=True,
Expand Down

0 comments on commit 7b5efe2

Please sign in to comment.