Skip to content

Commit

Permalink
Fix unittest due to changes in PILAS.tune setter
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Gsponer committed Sep 5, 2024
1 parent 63a78bd commit b9ad9d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_driver_nkt_photonics_pilas.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ def test_tune(driver, resource):
assert driver.tune == 37.0
assert resource.buffer == ["tune?"]

resource.buffer = ["tune mode:\t\tmanual", "done"]
resource.buffer = ["done", "done"]
driver.tune = 50.0
assert resource.buffer == ["tm?", "tune=500"]
assert resource.buffer == ["tm=0", "tune=500"]

resource.buffer = ["tune mode:\t\tmanual", "done"]
resource.buffer = ["done", "done"]
with pytest.raises(ValueError):
driver.tune = -1

resource.buffer = ["tune mode:\t\tmanual", "done"]
resource.buffer = ["done", "done"]
with pytest.raises(ValueError):

driver.tune = 101
Expand Down

0 comments on commit b9ad9d4

Please sign in to comment.