@@ -394,17 +394,22 @@ class Table_With_Underscores(dj.Manual):
394394
395395def test_hidden_attributes_default_value ():
396396 config_val = config .get ("enable_hidden_attributes" )
397- assert config_val is not None and not config_val , \
398- "Default value for enable_hidden_attributes is not False"
397+ assert (
398+ config_val is not None and not config_val
399+ ), "Default value for enable_hidden_attributes is not False"
399400
400401
401402def test_hidden_attributes_enabled (enable_hidden_attributes , schema_any ):
402403 orig_config_val = config .get ("enable_hidden_attributes" )
403404 config ["enable_hidden_attributes" ] = True
404405
405406 msg = f"{ Experiment ().heading ._attributes = } "
406- assert any (a .name .endswith ("_timestamp" ) for a in Experiment ().heading ._attributes .values ()), msg
407- assert any (a .name .startswith ("_" ) for a in Experiment ().heading ._attributes .values ()), msg
407+ assert any (
408+ a .name .endswith ("_timestamp" ) for a in Experiment ().heading ._attributes .values ()
409+ ), msg
410+ assert any (
411+ a .name .startswith ("_" ) for a in Experiment ().heading ._attributes .values ()
412+ ), msg
408413 assert any (a .is_hidden for a in Experiment ().heading ._attributes .values ()), msg
409414 assert not any (a .is_hidden for a in Experiment ().heading .attributes .values ()), msg
410415
@@ -417,8 +422,12 @@ def test_hidden_attributes_disabled(disable_hidden_attributes, schema_any):
417422 config ["enable_hidden_attributes" ] = False
418423
419424 msg = f"{ Experiment ().heading ._attributes = } "
420- assert not any (a .name .endswith ("_timestamp" ) for a in Experiment ().heading ._attributes .values ()), msg
421- assert not any (a .name .startswith ("_" ) for a in Experiment ().heading ._attributes .values ()), msg
425+ assert not any (
426+ a .name .endswith ("_timestamp" ) for a in Experiment ().heading ._attributes .values ()
427+ ), msg
428+ assert not any (
429+ a .name .startswith ("_" ) for a in Experiment ().heading ._attributes .values ()
430+ ), msg
422431 assert not any (a .is_hidden for a in Experiment ().heading ._attributes .values ()), msg
423432 assert not any (a .is_hidden for a in Experiment ().heading .attributes .values ()), msg
424433
0 commit comments