feat(api): find version using importlib.metadata
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2332>
This commit is contained in:
parent
651ff4e716
commit
9bf0367372
3 changed files with 10 additions and 7 deletions
5
api/tests/test_init.py
Normal file
5
api/tests/test_init.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
def test_version():
|
||||
from funkwhale_api import __version__, version
|
||||
|
||||
assert isinstance(version, str)
|
||||
assert version == __version__
|
||||
Loading…
Add table
Add a link
Reference in a new issue