tests: add two missing assert statements

This commit is contained in:
Fabio Valentini 2023-10-01 23:01:38 +02:00
parent cdc2355460
commit b94ecf1ece
No known key found for this signature in database
GPG key ID: 5AC5F572E5D410AF
2 changed files with 5 additions and 2 deletions

3
.gitignore vendored
View file

@ -1,8 +1,11 @@
__pycache__/ __pycache__/
/.tox/ /.tox/
/dist/ /dist/
/rust2rpm.egg-info/ /rust2rpm.egg-info/
/build/ /build/
/venv/ /venv/
/.idea/ /.idea/
/.vscode/
/.coverage /.coverage

View file

@ -14,7 +14,7 @@ from rust2rpm.utils import package_name_suffixed, package_name_compat
ids=repr, ids=repr,
) )
def test_package_name_suffixed(crate: str, suffix: str, expected: str): def test_package_name_suffixed(crate: str, suffix: str, expected: str):
package_name_suffixed(crate, suffix) == expected assert package_name_suffixed(crate, suffix) == expected
@pytest.mark.parametrize( @pytest.mark.parametrize(
@ -28,4 +28,4 @@ def test_package_name_suffixed(crate: str, suffix: str, expected: str):
ids=repr, ids=repr,
) )
def test_package_name_compat(crate: str, version: str, expected: str): def test_package_name_compat(crate: str, version: str, expected: str):
package_name_compat(crate, version) == expected assert package_name_compat(crate, version) == expected