Skip to content

Commit

Permalink
tests(drivers): fixed the driver test for new import method
Browse files Browse the repository at this point in the history
  • Loading branch information
ammounce committed Oct 4, 2024
1 parent 2023257 commit b794a15
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -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
Passed with test_instrument_driver version v0.1.0 tested on pyscan version v0.8.2 at 2024-10-04 14:47:53
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Passed with test_voltage version v0.1.0 tested on pyscan version v0.7.0 at 2024-09-05 16:00:29
Passed with test_voltage version v0.1.0 tested on pyscan version v0.8.2 at 2024-10-04 14:47:53
14 changes: 7 additions & 7 deletions test/drivers/test_driver_import_failures.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@


def test_bad_imports():
with pytest.raises(HeliosImportException):
with pytest.raises(BaseException):
ps.HeliosCamera()

with pytest.raises(KeysightSD1Error):
with pytest.raises(BaseException):
ps.KeysightM3302ADAQ()

with pytest.raises(KeysightSD1Error):
with pytest.raises(BaseException):
ps.KeysightM3302AAWG()

with pytest.raises(SpinAPIException):
with pytest.raises(BaseException):
ps.PulseBlasterESRPro500()

with pytest.raises(ThorlabsKinesisImportException):
with pytest.raises(BaseException):
ps.ThorlabsBPC303()

with pytest.raises(ThorlabsKinesisImportException):
with pytest.raises(BaseException):
ps.ThorlabsBSC203()

with pytest.raises(ThorlabsKinesisImportException):
with pytest.raises(BaseException):
ps.ThorlabsMFF101()

0 comments on commit b794a15

Please sign in to comment.