Skip to content

Commit

Permalink
Recover old test
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros11 committed Nov 14, 2023
1 parent f3986f8 commit dc76197
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_pulses.py
Original file line number Diff line number Diff line change
Expand Up @@ -1167,3 +1167,12 @@ def check_properties(pulse):
p0.start = start + 10
p0.duration = duration + 10
check_properties(p0)


def test_pulse_setter_errors():
faulty_duration = "hello"
faulty_start = "hello"
with pytest.raises(TypeError):
p0 = Pulse(faulty_start, 100, 0.9, 0, 0, Rectangular(), 0)
with pytest.raises(TypeError):
p0 = Pulse(0, faulty_duration, 0.9, 0, 0, Rectangular(), 0)

0 comments on commit dc76197

Please sign in to comment.