Skip to content

Commit e0f386d

Browse files
committed
Updated check in GraphRAG tests for OpenAI model by including AZURE_OPENAI_ENDPOINT
1 parent 259ed5a commit e0f386d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/langchain-mongodb/tests/integration_tests/test_graph_large.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def collection() -> Generator[Collection, None, None]:
3737
client.close()
3838

3939

40-
if "OPENAI_API_KEY" not in os.environ:
40+
if not ("OPENAI_API_KEY" in os.environ or "AZURE_OPENAI_ENDPOINT" in os.environ):
4141
pytest.skip(
4242
"GraphRAG tests require OpenAI for chat responses.", allow_module_level=True
4343
)

0 commit comments

Comments
 (0)