Skip to content

Commit

Permalink
add default status to the test check
Browse files Browse the repository at this point in the history
  • Loading branch information
frascuchon committed Jun 12, 2024
1 parent 6ffdd59 commit e4db95f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions argilla-sdk/tests/integration/test_add_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,11 @@ def test_add_records_objects_with_responses(client: Argilla):
responses=[rg.Response("comment", "The comment", user_id=user.id, status="draft")],
id=str(uuid.uuid4()),
),
rg.Record(
fields={"text": "Hello World, how are you?"},
responses=[rg.Response("comment", "The comment", user_id=user.id, status="draft")],
id=str(uuid.uuid4()),
),
]

dataset.records.log(records)
Expand All @@ -635,3 +640,7 @@ def test_add_records_objects_with_responses(client: Argilla):
assert dataset_records[2].id == records[2].id
assert dataset_records[2].responses.comment[0].value == "The comment"
assert dataset_records[2].responses.comment[0].status == "draft"

assert dataset_records[3].id == records[3].id
assert dataset_records[3].responses.comment[0].value == "The comment"
assert dataset_records[3].responses.comment[0].status == "draft"

0 comments on commit e4db95f

Please sign in to comment.