forked from Mirror/pmbootstrap
Auto-format codebase with ruff (MR 2325)
See: https://gitlab.com/postmarketOS/pmbootstrap/-/issues/2324 Closes: https://gitlab.com/postmarketOS/pmbootstrap/-/merge_requests/2278
This commit is contained in:
parent
5a8e2c6cad
commit
e421bb2d41
109 changed files with 4044 additions and 2984 deletions
|
@ -13,6 +13,7 @@ def test_pkgrepo_paths_no_repos(pmb_args):
|
|||
paths = pkgrepo_paths()
|
||||
print(paths)
|
||||
|
||||
|
||||
def test_pkgrepo_pmaports(pmaports, monkeypatch):
|
||||
"""Test pkgrepo_paths() with pmaports repository and systemd extra repo"""
|
||||
|
||||
|
@ -23,14 +24,18 @@ def test_pkgrepo_pmaports(pmaports, monkeypatch):
|
|||
print(f"[master] pkgrepo_paths: {paths}")
|
||||
assert len(paths) == 1
|
||||
assert "pmaports" in paths[0].name
|
||||
|
||||
|
||||
default_path = pkgrepo_default_path()
|
||||
|
||||
assert default_path.name == "pmaports"
|
||||
|
||||
# Test extra-repos
|
||||
assert pmb.helpers.run.user(["git", "checkout", "master_staging_systemd"],
|
||||
working_dir=default_path) == 0
|
||||
assert (
|
||||
pmb.helpers.run.user(
|
||||
["git", "checkout", "master_staging_systemd"], working_dir=default_path
|
||||
)
|
||||
== 0
|
||||
)
|
||||
|
||||
paths = pkgrepo_paths()
|
||||
assert len(paths) == 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue