test version in scripts/_common.sh

This commit is contained in:
JensDiemer 2020-12-29 11:35:29 +01:00
parent 577017d366
commit 1ce4c3a96d

View file

@ -31,6 +31,9 @@ def test_version(package_root=None, version=None):
assert_file_contains_string(file_path=Path(package_root, 'pyproject.toml'), string=f'version = "{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, 'scripts', '_common.sh'), string=f'"django_ynh=={version}"'
)
def test_poetry_check(package_root=None):