From 14b87d480a2848056264818f0034a4c6560aa84e Mon Sep 17 00:00:00 2001 From: Nikolay Stanchev <ns17@it-innovation.soton.ac.uk> Date: Mon, 5 Mar 2018 09:53:41 +0000 Subject: [PATCH] adjusted the scope of the fixture which reads the json file with tests --- test/streaming-sim/VerifySimResults.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/streaming-sim/VerifySimResults.py b/test/streaming-sim/VerifySimResults.py index b2eca72..28ad34d 100644 --- a/test/streaming-sim/VerifySimResults.py +++ b/test/streaming-sim/VerifySimResults.py @@ -16,7 +16,7 @@ class TestSimulation(object): """ This is the entry point of the test. This method will be found and executed when the module is ran using pytest - :param run_simulation: the imported fixture to use to generate the testing data - the return value of the fixture is not needed in this case + :param run_simulation_fixture: the imported fixture to use to generate the testing data - the return value of the fixture is not needed in this case :param queries_to_test: the fixture to use - returns a JSON object represented as a python dictionary """ @@ -66,7 +66,7 @@ class TestSimulation(object): return result.read().decode("utf-8").strip() @staticmethod - @fixture + @fixture(scope='class') def queries_to_test(): """ A pytest fixture used to read the queries, which would be tested, from a JSON file -- GitLab