Skip to main content

tests/test_versions.py

1"""
2Check that the JavaScript files and Python versions are in sync.
3"""
5import glob
7from chives import __version__
8from chives.javascript import get_version
11def test_versions_in_sync() -> None:
12 """
13 The JavaScript components have the same version as the Python module.
14 """
15 for filepath in glob.glob("javascript/*.js"):
16 print(filepath)
17 assert get_version(filepath) == __version__, (
18 f"want {__version__}, got {get_version(filepath)}"
19 )