Skip to content

Commit a949822

Browse files
fix: remove url parameter from kwargs to prevent duplication (#17)
* fix: remove method from kwargs and mark tests as ERROR on exceptions - Remove 'method' from kwargs before passing to auth.request() to fix 'got multiple values' error - Set test status to ERROR when exceptions occur during test execution - Fixes issue where all 190 tests were failing but showing as passed * fix: remove url parameter from kwargs to prevent duplication The case.as_transport_kwargs() method returns a dictionary that includes both 'method' and 'url' keys. We already fixed the 'method' duplication in the previous commit, but 'url' was also causing the same issue. When we pass path as a positional argument to auth.request(), which then passes it to httpx.Client.request() as the 'url' parameter, having 'url' also in **kwargs causes 'got multiple values for argument url' error. This fix removes both 'method' and 'url' from kwargs before passing to auth.request() to prevent parameter duplication. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 599c01e commit a949822

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/utils/schemathesis_runner.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,10 @@ def _execute_case(self, case: Case) -> Any:
271271
# Build request with authentication
272272
kwargs = case.as_transport_kwargs()
273273

274-
# Remove method from kwargs to avoid "got multiple values for argument" error
275-
# since we pass it as a positional argument to auth.request()
274+
# Remove method and url from kwargs to avoid "got multiple values for argument" error
275+
# since we pass them as positional arguments to auth.request()
276276
kwargs.pop("method", None)
277+
kwargs.pop("url", None)
277278

278279
# Add auth headers
279280
headers = kwargs.get("headers", {})

0 commit comments

Comments
 (0)