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 65d87ab
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 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
2 changes: 2 additions & 0 deletions admin_tools_stats/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class DashboardChart(modules.DashboardModule):
days = None
require_chart_jscss = False
extra = {}
chart_height = 300
chart_width = '100%'

model = None
graph_key = None
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
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 65d87ab

Please sign in to comment.