Skip to content

Commit

Permalink
actual add the file, Pycharm was new to me
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenyuLInx committed Apr 12, 2024
1 parent b96cdcf commit 55f73ae
Show file tree
Hide file tree
Showing 5 changed files with 1,440 additions and 0 deletions.
Empty file.
Empty file.
32 changes: 32 additions & 0 deletions tests/unit/contracts/graph/test_semantic_manifest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import pytest
from dbt.contracts.graph.semantic_manifest import SemanticManifest

# Request fixtures for manifest, this is simialr to import * in the file.
pytest_plugins = ("tests.unit.utils.manifest",)

# Overwrite the default nods to construct the manifest


@pytest.fixture
def nodes(metricflow_time_spine_model):
return [metricflow_time_spine_model]


@pytest.fixture
def semantic_models(
semantic_model,
) -> list:
return [semantic_model]


@pytest.fixture
def metrics(
metric,
) -> list:
return [metric]


class TestSemanticManifest:
def test_validate(self, manifest):
sm_manifest = SemanticManifest(manifest)
assert sm_manifest.validate()
Loading

0 comments on commit 55f73ae

Please sign in to comment.