style(image): apply black formatting to image provider files

This commit is contained in:
Andoni A.
2026-02-17 10:33:48 +01:00
parent e8ab331dff
commit b9060bebb0
2 changed files with 7 additions and 6 deletions
+1 -4
View File
@@ -882,10 +882,7 @@ class ImageProvider(Provider):
f"{total_images} {'image' if total_images == 1 else 'images'})\n"
)
for repo, tags in repos_tags.items():
print(
f" {Fore.YELLOW}{repo}{Style.RESET_ALL} "
f"({len(tags)} tags)"
)
print(f" {Fore.YELLOW}{repo}{Style.RESET_ALL} " f"({len(tags)} tags)")
print(f" {', '.join(tags)}")
print()
+6 -2
View File
@@ -445,7 +445,9 @@ class TestImageProviderRegistryAuth:
assert provider.auth_method == "Docker login"
@patch.dict(os.environ, {"REGISTRY_USERNAME": "envuser", "REGISTRY_PASSWORD": "envpass"})
@patch.dict(
os.environ, {"REGISTRY_USERNAME": "envuser", "REGISTRY_PASSWORD": "envpass"}
)
def test_basic_auth_from_env_vars(self):
"""Test that env vars are used as fallback for basic auth."""
provider = _make_provider()
@@ -462,7 +464,9 @@ class TestImageProviderRegistryAuth:
assert provider.registry_token == "env-token"
assert provider.auth_method == "Registry token"
@patch.dict(os.environ, {"REGISTRY_USERNAME": "envuser", "REGISTRY_PASSWORD": "envpass"})
@patch.dict(
os.environ, {"REGISTRY_USERNAME": "envuser", "REGISTRY_PASSWORD": "envpass"}
)
def test_explicit_params_override_env_vars(self):
"""Test that explicit params take precedence over env vars."""
provider = _make_provider(