Skip to content

Commit 668b9bd

Browse files
committed
Format with black==24.4.2
1 parent 2aab3e8 commit 668b9bd

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

tests/test_declare.py

+15-6
Original file line numberDiff line numberDiff line change
@@ -394,17 +394,22 @@ class Table_With_Underscores(dj.Manual):
394394

395395
def 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

401402
def 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

Comments
 (0)