We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 755be9b commit eb72bd1Copy full SHA for eb72bd1
tests/test_declare.py
@@ -366,9 +366,5 @@ def test_hidden_attributes(schema_any):
366
assert (
367
list(Experiment().heading._attributes.keys())[-1].split("_")[2] == "timestamp"
368
)
369
- assert (
370
- len([a for a in Experiment().heading._attributes.values() if a.is_hidden]) != 0
371
- )
372
373
- len([a for a in Experiment().heading.attributes.values() if a.is_hidden]) == 0
374
+ assert any(a.is_hidden for a in Experiment().heading._attributes.values())
+ assert not any(a.is_hidden for a in Experiment().heading.attributes.values())
0 commit comments