Skip to content

Commit

Permalink
Add version test
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd committed Oct 28, 2024
1 parent 69cc0a9 commit abc9f1a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/tests/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# specific language governing permissions and limitations
# under the License.

import importlib
import re

import nanoarrow as na
Expand All @@ -28,3 +29,7 @@ def test_version():
def test_c_version():
re_version = re.compile(r"^[0-9]+\.[0-9]+\.[0-9]+(-SNAPSHOT)?$")
assert re_version.match(na.c_version()) is not None


def test_metadata_version():
assert importlib.metadata.version("nanoarrow") == na.__version__

0 comments on commit abc9f1a

Please sign in to comment.