Skip to content

Commit 2a9eeb5

Browse files
committed
Fix tests
1 parent 86b6ad9 commit 2a9eeb5

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

tests/api_resources/test_devboxes.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import os
66
from typing import Any, cast
7-
from unittest.mock import ANY, Mock, patch
7+
from unittest.mock import Mock, patch
88

99
import httpx
1010
import pytest
@@ -1171,9 +1171,7 @@ def test_method_create_and_await_running_success(self, client: Runloop) -> None:
11711171
assert result.id == "test_id"
11721172
assert result.status == "running"
11731173
mock_create.assert_called_once()
1174-
mock_await.assert_called_once_with(
1175-
"test_id", polling_config=None, extra_headers=None, extra_query=None, extra_body=None, timeout=ANY
1176-
)
1174+
mock_await.assert_called_once_with("test_id", polling_config=None)
11771175

11781176
@parametrize
11791177
def test_method_create_and_await_running_with_config(self, client: Runloop) -> None:
@@ -1210,9 +1208,7 @@ def test_method_create_and_await_running_with_config(self, client: Runloop) -> N
12101208

12111209
assert result.id == "test_id"
12121210
assert result.status == "running"
1213-
mock_await.assert_called_once_with(
1214-
"test_id", polling_config=config, extra_headers=None, extra_query=None, extra_body=None, timeout=ANY
1215-
)
1211+
mock_await.assert_called_once_with("test_id", polling_config=config)
12161212

12171213
@parametrize
12181214
def test_method_create_and_await_running_create_failure(self, client: Runloop) -> None:

0 commit comments

Comments
 (0)