convert to set so not relying on correct order (#3015)

This commit is contained in:
James Briggs 2022-08-10 11:57:31 +01:00 committed by GitHub
parent 524c9b959d
commit 5d4e3bd7ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.