Skip to content

Commit 1c494b6

Browse files
committed
Clean up of rfsg system test
1 parent d299e47 commit 1c494b6

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/nirfsg/system_tests/test_system_nirfsg.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,22 @@ def get_test_file_path(file_name):
2323
return os.path.join(test_files_base_dir, file_name)
2424

2525

26+
sys.path.insert(0, str(pathlib.Path(__file__).parent.parent.parent / 'generated/nirfsg'))
27+
28+
2629
class SystemTests:
2730
@pytest.fixture(scope='function')
2831
def rfsg_device_session(self, session_creation_kwargs):
2932
if use_simulated_session:
30-
with nirfsg.Session("", False, True, "Simulate=1, DriverSetup=Model:5841", **session_creation_kwargs) as sim_5841_session:
33+
with nirfsg.Session("5841sim", options="Simulate=1, DriverSetup=Model:5841", **session_creation_kwargs) as sim_5841_session:
3134
yield sim_5841_session
3235
else:
33-
with nirfsg.Session(real_hw_resource_name, False, True, "", **session_creation_kwargs) as real_rfsg_device_session:
36+
with nirfsg.Session(real_hw_resource_name, **session_creation_kwargs) as real_rfsg_device_session:
3437
yield real_rfsg_device_session
3538

3639
@pytest.fixture(scope='function')
3740
def simulated_5831_device_session(self, session_creation_kwargs):
38-
with nirfsg.Session("", False, True, "Simulate=1, DriverSetup=Model:5831", **session_creation_kwargs) as sim_5831_session:
41+
with nirfsg.Session("5831sim", options="Simulate=1, DriverSetup=Model:5831", **session_creation_kwargs) as sim_5831_session:
3942
yield sim_5831_session
4043

4144
# Attribute set and get related tests

0 commit comments

Comments
 (0)