some tests, urls now have a name
This commit is contained in:
@ -30,3 +30,4 @@ class SystemTestCase(unittest.TestCase):
|
||||
|
||||
from test_models import *
|
||||
from test_views import *
|
||||
from test_charts import *
|
||||
|
15
euscanwww/djeuscan/tests/test_charts.py
Normal file
15
euscanwww/djeuscan/tests/test_charts.py
Normal file
@ -0,0 +1,15 @@
|
||||
from euscanwww.djeuscan.tests import SystemTestCase
|
||||
|
||||
|
||||
class ChartTests(SystemTestCase):
|
||||
"""
|
||||
Test main pages
|
||||
"""
|
||||
|
||||
def test_statistics(self):
|
||||
response = self.get("statistics")
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
def test_pie_versions(self):
|
||||
response = self.get("chart", chart="pie-versions")
|
||||
self.assertEqual(response.status_code, 200)
|
Reference in New Issue
Block a user