Explicitly list initial_data.json for the test data loader fixtures
authorDiane Trout <diane@ghic.org>
Tue, 21 Jan 2014 23:55:45 +0000 (15:55 -0800)
committerDiane Trout <diane@ghic.org>
Tue, 10 Jun 2014 23:40:48 +0000 (16:40 -0700)
South wasn't automatically loading initial_data.json, adding
them to the test case data loading fixture seems to have worked.

htsworkflow/frontend/experiments/test_experiments.py
htsworkflow/frontend/samples/test_samples.py
htsworkflow/pipelines/test/test_retrive_config.py

index fab24ccf36a5120b7b4229308aa2b4e037af5ae6..9cafb03d992004ec97b5f3cde31745cb4e7f73b0 100644 (file)
@@ -31,7 +31,8 @@ NSMAP = {'libns':'http://jumpgate.caltech.edu/wiki/LibraryOntology#'}
 from django.db import connection
 
 class ClusterStationTestCases(TestCase):
-    fixtures = ['test_flowcells.json']
+    fixtures = ['initial_data.json',
+                'test_flowcells.json']
 
     def test_default(self):
         c = models.ClusterStation.default()
@@ -79,7 +80,8 @@ class ClusterStationTestCases(TestCase):
 
 
 class SequencerTestCases(TestCase):
-    fixtures = ['test_flowcells.json']
+    fixtures = ['initial_data.json',
+                'test_flowcells.json']
 
     def test_default(self):
         # starting with no default
@@ -131,7 +133,8 @@ class SequencerTestCases(TestCase):
 
 
 class ExperimentsTestCases(TestCase):
-    fixtures = ['test_flowcells.json',
+    fixtures = ['initial_data.json',
+                'test_flowcells.json',
                 ]
 
     def setUp(self):
@@ -480,6 +483,10 @@ class ExperimentsTestCases(TestCase):
 
 
 class TestFileType(TestCase):
+    fixtures = ['initial_data.json',
+                'test_flowcells.json',
+                ]
+
     def test_file_type_unicode(self):
         file_type_objects = models.FileType.objects
         name = 'QSEQ tarfile'
@@ -538,7 +545,8 @@ class TestFileType(TestCase):
             self.assertEqual(result.get('end', None), end)
 
 class TestEmailNotify(TestCase):
-    fixtures = ['test_flowcells.json']
+    fixtures = ['initial_data.json',
+                'test_flowcells.json']
 
     def test_started_email_not_logged_in(self):
         response = self.client.get('/experiments/started/153/')
@@ -588,7 +596,8 @@ def multi_lane_to_dict(lane):
     return dict( ((x['library_id'],x) for x in lane) )
 
 class TestSequencer(TestCase):
-    fixtures = ['test_flowcells.json',
+    fixtures = ['initial_data.json',
+                'test_flowcells.json',
                 ]
 
     def test_name_generation(self):
index 594f2813e6519988b42abccf0c070a81c99c16f8..791bf059984bc72e902f0fc2543818f0f38784f2 100644 (file)
@@ -26,7 +26,8 @@ from htsworkflow.util.conversion import unicode_or_none
 from htsworkflow.util.ethelp import validate_xhtml
 
 class LibraryTestCase(TestCase):
-    fixtures = ['test_samples.json']
+    fixtures = ['initial_data.json',
+                'test_samples.json']
 
     def setUp(self):
         create_db(self)
@@ -52,7 +53,8 @@ class SampleWebTestCase(TestCase):
     Test returning data from our database in rest like ways.
     (like returning json objects)
     """
-    fixtures = ['test_samples.json']
+    fixtures = ['initial_data.json',
+                'test_samples.json']
 
     def test_library_info(self):
         for lib in Library.objects.all():
@@ -279,7 +281,8 @@ except ImportError,e:
 
 
 class TestRDFaLibrary(TestCase):
-    fixtures = ['test_samples.json']
+    fixtures = ['initial_data.json',
+                'test_samples.json']
 
     def test_parse_rdfa(self):
         model = get_rdf_memory_model()
index d06508e9ed3217aa8475f9ace27c39074d0a0202..cf30dd734e77b5e3d0ea98fd4ad9c00b77f6af5d 100644 (file)
@@ -17,7 +17,8 @@ from htsworkflow.pipelines.retrieve_config import \
      save_sample_sheet
 
 class RetrieveTestCases(TestCase):
-    fixtures = ['test_flowcells.json']
+    fixtures = ['initial_data.json',
+                'test_flowcells.json']
 
     def setUp(self):
         pass