mirror of
https://github.com/trailofbits/buttercup
synced 2026-06-21 14:11:39 +00:00
fix: resolve pydantic deprecation warnings (#321)
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
This commit is contained in:
@@ -61,7 +61,7 @@ class TestCRSClient:
|
||||
# Verify request was made correctly
|
||||
mock_post.assert_called_once_with(
|
||||
"http://test-crs:8080/v1/task/",
|
||||
json=sample_task.dict(),
|
||||
json=sample_task.model_dump(),
|
||||
auth=("test_user", "test_pass"),
|
||||
headers={"Content-Type": "application/json"},
|
||||
timeout=30,
|
||||
@@ -82,7 +82,7 @@ class TestCRSClient:
|
||||
# Verify request was made without auth
|
||||
mock_post.assert_called_once_with(
|
||||
"http://test-crs:8080/v1/task/",
|
||||
json=sample_task.dict(),
|
||||
json=sample_task.model_dump(),
|
||||
auth=None,
|
||||
headers={"Content-Type": "application/json"},
|
||||
timeout=30,
|
||||
|
||||
Reference in New Issue
Block a user