chore: some cleanup from ruff --preview checks
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
committed by
Henry Schreiner
parent
2f62696400
commit
183a7c3f1d
@@ -31,7 +31,7 @@ def platform_machine(request, monkeypatch):
|
||||
|
||||
|
||||
def test_arch_auto(platform_machine):
|
||||
platform_name, machine_name = platform_machine
|
||||
_, machine_name = platform_machine
|
||||
|
||||
arch_set = Architecture.auto_archs("linux")
|
||||
expected = {
|
||||
@@ -55,7 +55,7 @@ def test_arch_auto(platform_machine):
|
||||
|
||||
|
||||
def test_arch_auto64(platform_machine):
|
||||
platform_name, machine_name = platform_machine
|
||||
_, machine_name = platform_machine
|
||||
|
||||
arch_set = Architecture.parse_config("auto64", "linux")
|
||||
expected = {"32": set(), "64": {Architecture.x86_64}, "arm": {Architecture.aarch64}}
|
||||
@@ -71,7 +71,7 @@ def test_arch_auto64(platform_machine):
|
||||
|
||||
|
||||
def test_arch_auto32(platform_machine):
|
||||
platform_name, machine_name = platform_machine
|
||||
_, machine_name = platform_machine
|
||||
|
||||
arch_set = Architecture.parse_config("auto32", "linux")
|
||||
expected = {"32": {Architecture.i686}, "64": {Architecture.i686}, "arm": {Architecture.armv7l}}
|
||||
|
||||
@@ -554,7 +554,7 @@ def test_local_image(
|
||||
container_engine: OCIContainerEngineConfig, platform: OCIPlatform, tmp_path: Path
|
||||
) -> None:
|
||||
if (
|
||||
detect_ci_provider() in {CIProvider.travis_ci}
|
||||
detect_ci_provider() == CIProvider.travis_ci
|
||||
and pm != "x86_64"
|
||||
and platform != DEFAULT_OCI_PLATFORM
|
||||
):
|
||||
@@ -584,7 +584,7 @@ def test_local_image(
|
||||
@pytest.mark.parametrize("platform", list(OCIPlatform))
|
||||
def test_multiarch_image(container_engine, platform):
|
||||
if (
|
||||
detect_ci_provider() in {CIProvider.travis_ci}
|
||||
detect_ci_provider() == CIProvider.travis_ci
|
||||
and pm != "x86_64"
|
||||
and platform != DEFAULT_OCI_PLATFORM
|
||||
):
|
||||
|
||||
@@ -269,10 +269,10 @@ def test_read_dep_groups():
|
||||
|
||||
|
||||
def test_dep_group_no_file_error():
|
||||
with pytest.raises(FileNotFoundError, match="pyproject.toml"):
|
||||
with pytest.raises(FileNotFoundError, match=r"pyproject\.toml"):
|
||||
resolve_dependency_groups(None, "test")
|
||||
|
||||
|
||||
def test_dep_group_no_section_error():
|
||||
with pytest.raises(KeyError, match="pyproject.toml"):
|
||||
with pytest.raises(KeyError, match=r"pyproject\.toml"):
|
||||
resolve_dependency_groups({}, "test")
|
||||
|
||||
Reference in New Issue
Block a user