From 74bf5aefa23b26812a1dfaf94f8ff6dbbdc731a4 Mon Sep 17 00:00:00 2001 From: rudolf Date: Sun, 6 Sep 2026 16:46:14 +0200 Subject: [PATCH] fix(tests): add type ignore for non-string prefix in GitClone tests --- tests/test_git_integration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_git_integration.py b/tests/test_git_integration.py index 4879090..0efb41a 100644 --- a/tests/test_git_integration.py +++ b/tests/test_git_integration.py @@ -187,11 +187,11 @@ class TestGitIntegration: # `prefix` must be a string when set; non-string raises ValueError. with pytest.raises(ValueError, match="'prefix' must be a string"): GitClone(remotes=[ - {"name": "github", "url": "git@example.com:a/b.git", "prefix": 123}, + {"name": "github", "url": "git@example.com:a/b.git", "prefix": 123}, # type: ignore[dict-item] ]) with pytest.raises(ValueError, match="'prefix' must be a string"): GitClone(remotes=[ - {"name": "github", "url": "git@example.com:a/b.git", "prefix": ["ansible"]}, + {"name": "github", "url": "git@example.com:a/b.git", "prefix": ["ansible"]}, # type: ignore[dict-item] ]) # Empty string / None: accepted, treated as no prefix. c1 = GitClone(remotes=[{"name": "github", "url": "git@example.com:a/b.git", "prefix": ""}])