Skip to content
Snippets Groups Projects
Verified Commit a3bf1d07 authored by NolanB's avatar NolanB Committed by Yoann Schneider
Browse files

Replace ARKINDEX_CORPUS_ID .env variable with an attribute of base_worker corpus_id

parent 85007b7b
No related branches found
No related tags found
1 merge request!206Helper for ListCorpusEntities
......@@ -94,7 +94,6 @@ def test_create_entity_wrong_corpus(monkeypatch, mock_elements_worker):
elt = Element({"id": "12341234-1234-1234-1234-123412341234"})
# Triggering an error on metas param, not giving corpus should work since
# ARKINDEX_CORPUS_ID environment variable is set on mock_elements_worker
with pytest.raises(AssertionError) as e:
mock_elements_worker.create_entity(
element=elt,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment