diff --git a/tests/parsing/test_metric_parsing.py b/tests/parsing/test_metric_parsing.py index 7e71cb9f..efdb4ec0 100644 --- a/tests/parsing/test_metric_parsing.py +++ b/tests/parsing/test_metric_parsing.py @@ -91,6 +91,8 @@ def test_base_metric_parsing() -> None: type: {metric_type.value} description: {description} label: {label} + meta: + random: metadata type_params: measure: name: metadata_test_measure diff --git a/tests/parsing/test_semantic_model_parsing.py b/tests/parsing/test_semantic_model_parsing.py index 66ca43cc..8faec41f 100644 --- a/tests/parsing/test_semantic_model_parsing.py +++ b/tests/parsing/test_semantic_model_parsing.py @@ -28,6 +28,9 @@ def test_base_semantic_model_parsing() -> None: node_relation: alias: source_table schema_name: some_schema + config: + meta: + test_metadata: random """ ) file = YamlConfigFile(filepath="test_dir/inline_for_test", contents=yaml_contents) diff --git a/tests/test_implements_satisfy_protocols.py b/tests/test_implements_satisfy_protocols.py index 03fb16ef..9950d5a1 100644 --- a/tests/test_implements_satisfy_protocols.py +++ b/tests/test_implements_satisfy_protocols.py @@ -1,7 +1,16 @@ from typing import List, Protocol, runtime_checkable from hypothesis import given -from hypothesis.strategies import booleans, builds, from_type, just, lists, none, text +from hypothesis.strategies import ( + booleans, + builds, + dictionaries, + from_type, + just, + lists, + none, + text, +) from dbt_semantic_interfaces.implementations.elements.dimension import ( PydanticDimension, @@ -54,6 +63,7 @@ OPTIONAL_STR_STRATEGY = text() | none() OPTIONAL_METADATA_STRATEGY = builds(PydanticMetadata) | none() +META_STRATEGY = dictionaries(text(), text()) CATEGORICAL_DIMENSION_STRATEGY = builds( PydanticDimension, @@ -117,6 +127,7 @@ filter=builds(PydanticWhereFilter) | none(), metadata=OPTIONAL_METADATA_STRATEGY, label=OPTIONAL_STR_STRATEGY, + meta=META_STRATEGY, ) SAVED_QUERY_STRATEGY = builds(