1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pyinventory_ynh.git synced 2024-09-03 20:16:09 +02:00

fix tests: we didn't have version information in README ;)

This commit is contained in:
JensDiemer 2020-12-29 14:48:41 +01:00
parent e3138f0ed5
commit 4e8746cfaa

View file

@ -20,11 +20,6 @@ def assert_file_contains_string(file_path, string):
def test_version():
version = inventory.__version__
if 'dev' not in version and 'rc' not in version:
version_string = f'v{version}'
assert_file_contains_string(file_path=Path(PACKAGE_ROOT, 'README.md'), string=version_string)
assert_file_contains_string(file_path=Path(PACKAGE_ROOT, 'pyproject.toml'), string=f'version = "{version}~ynh')
assert_file_contains_string(file_path=Path(PACKAGE_ROOT, 'pyproject.toml'), string=f'pyinventory = "=={version}"')
assert_file_contains_string(file_path=Path(PACKAGE_ROOT, 'manifest.json'), string=f'"version": "{version}~ynh')