Merge "Split the dashboard into different apps, add tests"
[pharos.git] / tools / pharos-dashboard / jenkins / tests.py
similarity index 91%
rename from tools/pharos-dashboard/dashboard/tests.py
rename to tools/pharos-dashboard/jenkins/tests.py
index 7509578..b141451 100644 (file)
@@ -1,5 +1,6 @@
-import dashboard.jenkins.jenkins_adapter as jenkins
-from django.test import SimpleTestCase
+from unittest import TestCase
+
+import jenkins.adapter as jenkins
 
 
 # Tests that the data we get with the jenkinsadapter contains all the
@@ -8,7 +9,7 @@ from django.test import SimpleTestCase
 # - the opnfv jenkins url has changed
 # - the jenkins api has changed
 # - jenkins is not set up / there is no data
-class JenkinsAdapterTestCase(SimpleTestCase):
+class JenkinsAdapterTestCase(TestCase):
     def test_get_all_slaves(self):
         slaves = jenkins.get_all_slaves()
         self.assertTrue(len(slaves) > 0)