Skip to content

Commit

Permalink
Updates tests
Browse files Browse the repository at this point in the history
  • Loading branch information
domna committed Oct 30, 2023
1 parent 9894b38 commit defc53a
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions tests/nexus/test_version.py
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

0 comments on commit defc53a

Please sign in to comment.