This commit is contained in:
@@ -59,7 +59,7 @@ def test_devices_repr_fallback_and_ignore():
|
|||||||
|
|
||||||
ipy.user_ns["_test_hidden_device"] = WithDescription("HIDDEN")
|
ipy.user_ns["_test_hidden_device"] = WithDescription("HIDDEN")
|
||||||
|
|
||||||
# Inject valid devices into the IPython user namespace ===
|
# Inject valid devices into IPython
|
||||||
|
|
||||||
ipy.user_ns["test_desc"] = WithDescription("D1") # has description
|
ipy.user_ns["test_desc"] = WithDescription("D1") # has description
|
||||||
ipy.user_ns["test_doc"] = WithDoc("D2") # has __doc__
|
ipy.user_ns["test_doc"] = WithDoc("D2") # has __doc__
|
||||||
@@ -82,7 +82,7 @@ def test_devices_repr_fallback_and_ignore():
|
|||||||
assert "test_id" in out
|
assert "test_id" in out
|
||||||
assert "D4" in out
|
assert "D4" in out
|
||||||
|
|
||||||
# ❌ Assert that all ignored values are NOT shown
|
# Assert that all ignored values are NOT shown
|
||||||
for bad in [
|
for bad in [
|
||||||
"test_str", "test_int", "test_list", "test_func",
|
"test_str", "test_int", "test_list", "test_func",
|
||||||
"test_module", "test_fake_device", "_test_hidden_device"
|
"test_module", "test_fake_device", "_test_hidden_device"
|
||||||
|
|||||||
Reference in New Issue
Block a user