Skip to content

Commit

Permalink
include test of version in codemeta.json
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasprobst committed Dec 20, 2023
1 parent e41eb23 commit 4c707ca
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import json
import pathlib
import unittest

Expand All @@ -17,3 +18,11 @@ def test_version(self):
if 'version' in line:
this_version = line.split(' = ')[-1].strip()
self.assertEqual(h5tbx.__version__, this_version)

def test_codemeta(self):
"""checking if the version in codemeta.json is the same as the one of the toolbox"""

with open(__this_dir__ / '../codemeta.json', 'r') as f:
codemeta = json.loads(f.read())

assert codemeta['version'] == h5tbx.__version__

0 comments on commit 4c707ca

Please sign in to comment.