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

Modif with the review

parent b39465fb
No related branches found
No related tags found
1 merge request!206Helper for ListCorpusEntities
This commit is part of merge request !206. Comments created here will be created in the context of that merge request.
......@@ -36,7 +36,6 @@ class ClassificationMixin(object):
:param ml_class str: Name of the MLClass.
:returns str: ID of the retrieved or created MLClass.
"""
if not self.classes.get(self.corpus_id):
self.load_corpus_classes()
......
......@@ -94,6 +94,7 @@ 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