Skip to content

Commit 8d8372c

Browse files
rsbrosti-am-mounce
authored andcommitted
test(core): added tests for these changes.
1 parent 91b7c41 commit 8d8372c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/measurement/test_run_info.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
'''
44

55
import pyscan as ps
6+
import pytest
67

78

89
# ######## need to add tests for runinfo's different @property definitions.
@@ -97,3 +98,10 @@ def check_runinfo_attributes():
9798
check_attribute(runinfo=init_runinfo, attribute=init_runinfo.verbose, attribute_name='verbose', expected=False)
9899

99100
check_runinfo_attributes()
101+
102+
init_runinfo.scan0 = ps.PropertyScan({'v1': ps.drange(0, 0.1, 0.1)}, 'voltage')
103+
init_runinfo.scan1 = ps.PropertyScan({'v2': ps.drange(0, 0.1, 0.1)}, 'voltage')
104+
init_runinfo.check()
105+
with pytest.raises(Exception):
106+
init_runinfo.scan3 = ps.PropertyScan({'v3': ps.drange(0, 0.1, 0.1)}, 'voltage')
107+
init_runinfo.check()

0 commit comments

Comments
 (0)