Skip to content

Commit f0c8047

Browse files
committed
Add more tests
1 parent e857dd1 commit f0c8047

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

tests/test_client_factory.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,21 @@ def test_client_factory_types(requested_type: ClientType, expected_type):
3131
assert isinstance(result, expected_type)
3232

3333

34-
def test_client_factory_payload_size_warning():
34+
@pytest.mark.parametrize(
35+
"client_type",
36+
[
37+
ClientType.SYNC,
38+
ClientType.ASYNC,
39+
ClientType.ASYNC_THREAD,
40+
ClientType.ASYNC_BATCHED,
41+
],
42+
)
43+
def test_client_factory_payload_size_warning(client_type: ClientType):
3544
payload_size = 123
3645
with pytest.warns(DeprecationWarning) as warnings:
3746
# noinspection PyArgumentList
3847
client = create_client(
39-
ClientType.SYNC,
48+
client_type,
4049
"http://endpoint",
4150
"default_personal",
4251
api_key="test_api_key",

0 commit comments

Comments
 (0)