forked from Mirror/pmbootstrap
tests: fix tests (MR 2252)
Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
e6c737f342
commit
b89e300c26
2 changed files with 50 additions and 10 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue