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:
parent
e3138f0ed5
commit
4e8746cfaa
1 changed files with 0 additions and 5 deletions
|
@ -20,11 +20,6 @@ def assert_file_contains_string(file_path, string):
|
||||||
def test_version():
|
def test_version():
|
||||||
version = inventory.__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'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, 'pyproject.toml'), string=f'pyinventory = "=={version}"')
|
||||||
assert_file_contains_string(file_path=Path(PACKAGE_ROOT, 'manifest.json'), string=f'"version": "{version}~ynh')
|
assert_file_contains_string(file_path=Path(PACKAGE_ROOT, 'manifest.json'), string=f'"version": "{version}~ynh')
|
||||||
|
|
Loading…
Reference in a new issue