Skip to content

Commit

Permalink
TST: make casting test slightly less artificial
Browse files Browse the repository at this point in the history
  • Loading branch information
ZLLentz committed Jun 25, 2024
1 parent ee526b7 commit f84cce2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion typhos/tests/plugins/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,9 @@ def test_enum_casts(qapp):
assert conn.cast(2) == 2

# Try str next
conn.signal_type = str
conn.signal_type = None
sig.put("2")
qapp.processEvents()

assert conn.cast("1") == "1"
assert conn.cast("2") == "2"
Expand Down

0 comments on commit f84cce2

Please sign in to comment.