Skip to content

Commit

Permalink
Add version test
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleFromNVIDIA committed May 29, 2024
1 parent db3af53 commit f9b62d1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions python/cuvs/cuvs/test/test_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright (c) 2024, NVIDIA CORPORATION.

import cuvs


def test_version_constants_are_populated():
# __git_commit__ will only be non-empty in a built distribution
assert isinstance(cuvs.__git_commit__, str)

# __version__ should always be non-empty
assert isinstance(cuvs.__version__, str)
assert len(cuvs.__version__) > 0

0 comments on commit f9b62d1

Please sign in to comment.