Skip to content

Commit b794a15

Browse files
committed
tests(drivers): fixed the driver test for new import method
1 parent 2023257 commit b794a15

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Passed with test_instrument_driver version v0.1.0 tested on pyscan version v0.7.0 at 2024-09-05 16:00:29
1+
Passed with test_instrument_driver version v0.1.0 tested on pyscan version v0.8.2 at 2024-10-04 14:47:53
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Passed with test_voltage version v0.1.0 tested on pyscan version v0.7.0 at 2024-09-05 16:00:29
1+
Passed with test_voltage version v0.1.0 tested on pyscan version v0.8.2 at 2024-10-04 14:47:53

test/drivers/test_driver_import_failures.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@
77

88

99
def test_bad_imports():
10-
with pytest.raises(HeliosImportException):
10+
with pytest.raises(BaseException):
1111
ps.HeliosCamera()
1212

13-
with pytest.raises(KeysightSD1Error):
13+
with pytest.raises(BaseException):
1414
ps.KeysightM3302ADAQ()
1515

16-
with pytest.raises(KeysightSD1Error):
16+
with pytest.raises(BaseException):
1717
ps.KeysightM3302AAWG()
1818

19-
with pytest.raises(SpinAPIException):
19+
with pytest.raises(BaseException):
2020
ps.PulseBlasterESRPro500()
2121

22-
with pytest.raises(ThorlabsKinesisImportException):
22+
with pytest.raises(BaseException):
2323
ps.ThorlabsBPC303()
2424

25-
with pytest.raises(ThorlabsKinesisImportException):
25+
with pytest.raises(BaseException):
2626
ps.ThorlabsBSC203()
2727

28-
with pytest.raises(ThorlabsKinesisImportException):
28+
with pytest.raises(BaseException):
2929
ps.ThorlabsMFF101()

0 commit comments

Comments
 (0)