@@ -394,17 +394,22 @@ class Table_With_Underscores(dj.Manual):
394
394
395
395
def test_hidden_attributes_default_value ():
396
396
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"
399
400
400
401
401
402
def test_hidden_attributes_enabled (enable_hidden_attributes , schema_any ):
402
403
orig_config_val = config .get ("enable_hidden_attributes" )
403
404
config ["enable_hidden_attributes" ] = True
404
405
405
406
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
408
413
assert any (a .is_hidden for a in Experiment ().heading ._attributes .values ()), msg
409
414
assert not any (a .is_hidden for a in Experiment ().heading .attributes .values ()), msg
410
415
@@ -417,8 +422,12 @@ def test_hidden_attributes_disabled(disable_hidden_attributes, schema_any):
417
422
config ["enable_hidden_attributes" ] = False
418
423
419
424
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
422
431
assert not any (a .is_hidden for a in Experiment ().heading ._attributes .values ()), msg
423
432
assert not any (a .is_hidden for a in Experiment ().heading .attributes .values ()), msg
424
433
0 commit comments