-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from dbt-labs/adding-semantic-manifest-version
Adding semantic manifest version
- Loading branch information
Showing
5 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
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,6 @@ | ||
kind: Features | ||
body: Adding DSI version number to semantic manifest | ||
time: 2023-05-17T10:39:47.542969-05:00 | ||
custom: | ||
Author: callum-mcdata | ||
Issue: "30" |
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
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
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
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,15 @@ | ||
from importlib_metadata import version | ||
|
||
from dbt_semantic_interfaces.implementations.semantic_manifest import SemanticManifest | ||
|
||
|
||
def test_interfaces_version_matches() -> None: | ||
"""Test that the interfaces_version property returns the installed version of dbt_semantic_interfaces.""" | ||
semantic_manifest = SemanticManifest( | ||
semantic_models=[], | ||
metrics=[], | ||
) | ||
|
||
# get the actual installed version | ||
installed_version = version("dbt_semantic_interfaces") | ||
assert semantic_manifest.interfaces_version == installed_version |