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 23, 2024
1 parent c88e104 commit 614da15
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 614da15

Please sign in to comment.