tests: fix tests (MR 2252)

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-06-22 19:22:04 +02:00 committed by Oliver Smith
parent e6c737f342
commit b89e300c26
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 50 additions and 10 deletions

View file

@ -8,6 +8,7 @@ from pmb.core.pkgrepo import pkgrepo_paths, pkgrepo_default_path
@pytest.mark.parametrize("config_file", ["no-repos"], indirect=True)
def test_pkgrepo_paths_no_repos(pmb_args):
"""Test pkgrepo_paths() with no repositories. Should raise a RuntimeError."""
pkgrepo_paths.cache_disable()
with pytest.raises(RuntimeError):
paths = pkgrepo_paths()
print(paths)