Exemple #1
0
 def test_run_component_create(self):
     run = Run(value=self.json_entries_runs[0])
     component = Component(value=self.json_entries_components[0])
     test_run_component = RunComponent(
         run_reference=run.to_reference(),
         component_reference=component.to_reference())
     test_run_component.save()
     assert "_id" in test_run_component.json
Exemple #2
0
 def test_sample_component_create(self):
     sample = Sample(value=self.json_entries_samples[0])
     component = Component(value=self.json_entries_components[0])
     test_sample_component = SampleComponent(
         sample_reference=sample.to_reference(),
         component_reference=component.to_reference())
     test_sample_component.save()
     assert "_id" in test_sample_component.json