Skip to content

Commit

Permalink
Switched hypothesis random sampling over enum to pytest parametrize
Browse files Browse the repository at this point in the history
  • Loading branch information
trappitsch committed Sep 1, 2020
1 parent fae440e commit 73dc4d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instruments/tests/test_tektronix/test_tekdpo4104.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def test_channel_init(channel):


@pytest.mark.parametrize("channel", channels_to_try, ids=channels_to_try_ids)
@given(coupling=st.sampled_from(ik.tektronix.TekDPO4104.Coupling))
@pytest.mark.parametrize("coupling", ik.tektronix.TekDPO4104.Coupling)
def test_channel_coupling(channel, coupling):
"""Initialize a channel."""
with expected_protocol(
Expand Down

0 comments on commit 73dc4d7

Please sign in to comment.