mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-08 04:56:45 +00:00
convert to set so not relying on correct order (#3015)
This commit is contained in:
parent
524c9b959d
commit
5d4e3bd7ca
@ -889,7 +889,7 @@ def test_multilabel(document_store: BaseDocumentStore):
|
||||
document_store.write_labels(labels)
|
||||
# regular labels - not aggregated
|
||||
list_labels = document_store.get_all_labels()
|
||||
assert list_labels == labels
|
||||
assert set(list_labels) == set(labels)
|
||||
assert len(list_labels) == 5
|
||||
|
||||
# Currently we don't enforce writing (missing) docs automatically when adding labels and there's no DB relationship between the two.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user