Skip to content
Snippets Groups Projects
Commit 14b87d48 authored by Nikolay Stanchev's avatar Nikolay Stanchev
Browse files

adjusted the scope of the fixture which reads the json file with tests

parent 5c2f04c6
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment