-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
actual add the file, Pycharm was new to me
- Loading branch information
1 parent
b96cdcf
commit 55f73ae
Showing
5 changed files
with
1,440 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
Oops, something went wrong.