Skip to content

Commit

Permalink
Add integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Oct 1, 2024
1 parent a217db7 commit 454622b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions python/tests/integration_tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,10 @@ def test_create_chat_example(
langchain_client.delete_dataset(dataset_id=dataset.id)


def test_batch_ingest_runs(langchain_client: Client) -> None:
@pytest.mark.parametrize("use_multipart_endpoint", [True, False])
def test_batch_ingest_runs(
langchain_client: Client, use_multipart_endpoint: bool
) -> None:
_session = "__test_batch_ingest_runs"
trace_id = uuid4()
trace_id_2 = uuid4()
Expand Down Expand Up @@ -669,7 +672,12 @@ def test_batch_ingest_runs(langchain_client: Client) -> None:
"outputs": {"output1": 4, "output2": 5},
},
]
langchain_client.batch_ingest_runs(create=runs_to_create, update=runs_to_update)
if use_multipart_endpoint:
langchain_client.multipart_ingest_runs(
create=runs_to_create, update=runs_to_update
)
else:
langchain_client.batch_ingest_runs(create=runs_to_create, update=runs_to_update)
runs = []
wait = 4
for _ in range(15):
Expand Down

0 comments on commit 454622b

Please sign in to comment.