We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d61d16 commit 9c00d9aCopy full SHA for 9c00d9a
tests/conftest.py
@@ -86,8 +86,8 @@ def simple_partial_dataset(test_client: Client) -> Dataset:
86
documents = mock_documents(1000)
87
fields = ["sample_1_label"]
88
for document in documents:
89
- for field in random.sample(fields, k=random.randint(1, 3)):
90
- document.pop(field)
+ if random.random() < 0.5:
+ document.pop(fields[0])
91
dataset.insert_documents(documents)
92
yield dataset
93
test_client.delete_dataset(dataset_id)
0 commit comments