From 668b9bdc77cf26d503859a56f1dcfa199d543908 Mon Sep 17 00:00:00 2001 From: Ethan Ho <53266718+ethho@users.noreply.github.com> Date: Sun, 22 Sep 2024 12:18:53 -0500 Subject: [PATCH] Format with black==24.4.2 --- tests/test_declare.py | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/tests/test_declare.py b/tests/test_declare.py index 0b808e56..dc60deb9 100644 --- a/tests/test_declare.py +++ b/tests/test_declare.py @@ -394,8 +394,9 @@ class Table_With_Underscores(dj.Manual): def test_hidden_attributes_default_value(): config_val = config.get("enable_hidden_attributes") - assert config_val is not None and not config_val, \ - "Default value for enable_hidden_attributes is not False" + assert ( + config_val is not None and not config_val + ), "Default value for enable_hidden_attributes is not False" def test_hidden_attributes_enabled(enable_hidden_attributes, schema_any): @@ -403,8 +404,12 @@ def test_hidden_attributes_enabled(enable_hidden_attributes, schema_any): config["enable_hidden_attributes"] = True msg = f"{Experiment().heading._attributes=}" - assert any(a.name.endswith("_timestamp") for a in Experiment().heading._attributes.values()), msg - assert any(a.name.startswith("_") for a in Experiment().heading._attributes.values()), msg + assert any( + a.name.endswith("_timestamp") for a in Experiment().heading._attributes.values() + ), msg + assert any( + a.name.startswith("_") for a in Experiment().heading._attributes.values() + ), msg assert any(a.is_hidden for a in Experiment().heading._attributes.values()), msg assert not any(a.is_hidden for a in Experiment().heading.attributes.values()), msg @@ -417,8 +422,12 @@ def test_hidden_attributes_disabled(disable_hidden_attributes, schema_any): config["enable_hidden_attributes"] = False msg = f"{Experiment().heading._attributes=}" - assert not any(a.name.endswith("_timestamp") for a in Experiment().heading._attributes.values()), msg - assert not any(a.name.startswith("_") for a in Experiment().heading._attributes.values()), msg + assert not any( + a.name.endswith("_timestamp") for a in Experiment().heading._attributes.values() + ), msg + assert not any( + a.name.startswith("_") for a in Experiment().heading._attributes.values() + ), msg assert not any(a.is_hidden for a in Experiment().heading._attributes.values()), msg assert not any(a.is_hidden for a in Experiment().heading.attributes.values()), msg