From c9190c60ef946f6256ddbfabb6726f8c67471045 Mon Sep 17 00:00:00 2001 From: Tom Phillips Date: Thu, 3 Oct 2024 11:41:50 +0100 Subject: [PATCH 1/2] Formatting --- core/dbt/parser/schema_generic_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/dbt/parser/schema_generic_tests.py b/core/dbt/parser/schema_generic_tests.py index 1200d2c6723..ccd9657f07e 100644 --- a/core/dbt/parser/schema_generic_tests.py +++ b/core/dbt/parser/schema_generic_tests.py @@ -134,7 +134,7 @@ def get_hashable_md(data: Union[str, int, float, List, Dict]) -> Union[str, List "column_name": column_name, "checksum": FileHash.empty().to_dict(omit_none=True), "file_key_name": file_key_name, - "meta": target.config.get('meta', {}) if hasattr(target, 'config') else {}, + "meta": target.config.get("meta", {}) if hasattr(target, "config") else {}, } try: GenericTestNode.validate(dct) From 5c767c39206c177d04a8c0971a4750966e9f6214 Mon Sep 17 00:00:00 2001 From: Tom Phillips Date: Thu, 3 Oct 2024 12:20:13 +0100 Subject: [PATCH 2/2] Fix failing test TestVerifyArtifactsVersions::test_versions --- tests/functional/artifacts/expected_manifest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/functional/artifacts/expected_manifest.py b/tests/functional/artifacts/expected_manifest.py index 749a5b77619..b8786584b43 100644 --- a/tests/functional/artifacts/expected_manifest.py +++ b/tests/functional/artifacts/expected_manifest.py @@ -1760,7 +1760,7 @@ def expected_versions_manifest(project): "schema": test_audit_schema, "database": project.database, "tags": [], - "meta": {}, + "meta": {"size": "large", "color": "blue"}, "unique_id": "test.test.unique_versioned_model_v1_first_name.6138195dec", "docs": {"node_color": None, "show": True}, "compiled": True, @@ -1813,7 +1813,7 @@ def expected_versions_manifest(project): "schema": test_audit_schema, "database": project.database, "tags": [], - "meta": {}, + "meta": {"color": "blue", "size": "large"}, "unique_id": "test.test.unique_versioned_model_v1_count.0b4c0b688a", "docs": {"node_color": None, "show": True}, "compiled": True, @@ -1866,7 +1866,7 @@ def expected_versions_manifest(project): "schema": test_audit_schema, "database": project.database, "tags": [], - "meta": {}, + "meta": {"color": "blue", "size": "large"}, "unique_id": "test.test.unique_versioned_model_v2_first_name.998430d28e", "docs": {"node_color": None, "show": True}, "compiled": True,