mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
fix(copilot): add missing dry_run param to http_credentials_test calls
After the dev merge, RunBlockTool._execute() gained a required keyword-only `dry_run` parameter. The two integration tests in TestRunBlockToolAuthenticatedHttp were not updated, causing type-check and test failures across all Python versions.
This commit is contained in:
@@ -866,6 +866,7 @@ class TestRunBlockToolAuthenticatedHttp:
|
||||
session=session,
|
||||
block_id=block.id,
|
||||
input_data={"url": "https://api.example.com/data", "method": "GET"},
|
||||
dry_run=False,
|
||||
)
|
||||
|
||||
assert isinstance(response, SetupRequirementsResponse)
|
||||
@@ -907,6 +908,7 @@ class TestRunBlockToolAuthenticatedHttp:
|
||||
session=session,
|
||||
block_id=block.id,
|
||||
input_data={},
|
||||
dry_run=False,
|
||||
)
|
||||
|
||||
assert isinstance(response, BlockDetailsResponse)
|
||||
|
||||
Reference in New Issue
Block a user