-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
11 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 |
---|---|---|
@@ -1,22 +1,14 @@ | ||
""" | ||
Tests the version retrieval for the nexus definitions submodule | ||
""" | ||
from subprocess import run | ||
from pynxtools.definitions.dev_tools.globals.nxdl import get_vcs_version | ||
from pynxtools import get_nexus_version | ||
|
||
|
||
def test_git_is_runnable(): | ||
""" | ||
Check if git is generally runnable in this environment | ||
""" | ||
run(["git", "describe", "--tags"], check=True) | ||
|
||
|
||
def test_get_vcs_version(): | ||
def test_get_nexus_version(): | ||
""" | ||
Tests if we get a version string from nexus definitions | ||
""" | ||
version = get_vcs_version() | ||
version = get_nexus_version() | ||
|
||
assert version is not None | ||
assert version |