tests: add two missing assert statements
This commit is contained in:
parent
cdc2355460
commit
b94ecf1ece
2 changed files with 5 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue