Skip to content

Commit 9c00d9a

Browse files
fix conftest
1 parent 5d61d16 commit 9c00d9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ def simple_partial_dataset(test_client: Client) -> Dataset:
8686
documents = mock_documents(1000)
8787
fields = ["sample_1_label"]
8888
for document in documents:
89-
for field in random.sample(fields, k=random.randint(1, 3)):
90-
document.pop(field)
89+
if random.random() < 0.5:
90+
document.pop(fields[0])
9191
dataset.insert_documents(documents)
9292
yield dataset
9393
test_client.delete_dataset(dataset_id)

0 commit comments

Comments
 (0)