Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
isahers1 committed Dec 9, 2024
1 parent 5c2c74d commit 2b385b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/tests/integration_tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,17 +439,17 @@ def test_upload_examples_multipart(langchain_client: Client):
# Verify example with ID was created with correct ID
example_with_id = [ex for ex in examples if ex.id == example_id][0]
assert example_with_id.inputs["text"] == "hello world"
assert "test_file" in example_with_id.attachment_urls
assert "test_file" in example_with_id.attachments

# Verify example with outputs and multiple attachments
example_with_outputs = next(
ex
for ex in examples
if ex.outputs and ex.outputs.get("response") == "test response"
)
assert len(example_with_outputs.attachment_urls) == 2
assert "file1" in example_with_outputs.attachment_urls
assert "file2" in example_with_outputs.attachment_urls
assert len(example_with_outputs.attachments) == 2
assert "file1" in example_with_outputs.attachments
assert "file2" in example_with_outputs.attachments

# Test uploading to non-existent dataset fails
fake_id = uuid4()
Expand Down

0 comments on commit 2b385b6

Please sign in to comment.