Skip to content

Commit 209e6d5

Browse files
authored
remove duplicate test (#8944)
1 parent ee81570 commit 209e6d5

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

test/components/generators/chat/test_openai.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -151,23 +151,6 @@ def test_init_with_parameters_and_env_vars(self, monkeypatch):
151151
assert component.client.timeout == 100.0
152152
assert component.client.max_retries == 10
153153

154-
def test_init_should_also_create_async_client_with_same_args(self, monkeypatch):
155-
monkeypatch.setenv("OPENAI_API_KEY", "test-api-key")
156-
component = OpenAIChatGenerator(
157-
api_key=Secret.from_token("test-api-key"),
158-
api_base_url="test-base-url",
159-
organization="test-organization",
160-
timeout=30,
161-
max_retries=5,
162-
)
163-
164-
assert isinstance(component.async_client, AsyncOpenAI)
165-
assert component.async_client.api_key == "test-api-key"
166-
assert component.async_client.organization == "test-organization"
167-
assert component.async_client.base_url == "test-base-url/"
168-
assert component.async_client.timeout == 30
169-
assert component.async_client.max_retries == 5
170-
171154
def test_to_dict_default(self, monkeypatch):
172155
monkeypatch.setenv("OPENAI_API_KEY", "test-api-key")
173156
component = OpenAIChatGenerator()

0 commit comments

Comments
 (0)