diff --git a/tests/README.single_test b/tests/README.single_test new file mode 100644 index 0000000..5b84a13 --- /dev/null +++ b/tests/README.single_test @@ -0,0 +1 @@ +PYTHONPATH=.. python -m unittest test_details.CoshshTest.test_detail_keyvalues diff --git a/tests/test_details.py b/tests/test_details.py index dadb845..2fd76ef 100644 --- a/tests/test_details.py +++ b/tests/test_details.py @@ -42,9 +42,9 @@ def tearDown(self): def test_detail_keyvalues(self): self.print_header() cfg = self.config.items("datasource_CSVDETAILS") + self.generator.recipes['test6'].add_datasource(**dict(cfg)) + self.generator.recipes['test6'].collect() objects = self.generator.recipes['test6'].objects - ds = coshsh.datasource.Datasource(**dict(cfg)) - ds.read(objects=objects) app1 = objects['applications'].values()[0] app1.resolve_monitoring_details() app2 = objects['applications'].values()[1]