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

Fix lintin

parent 5b321b36
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.
......@@ -51,7 +51,7 @@ def test_get_ml_class_id_inexistant_class(mock_elements_worker, responses):
# A missing class is now created automatically
corpus_id = "11111111-1111-1111-1111-111111111111"
mock_elements_worker.classes = {
"12341234-1234-1234-1234-123412341234": {"good": "0000"}
"12341234-1234-1234-1234-123412341234": {"good": "0000"}
}
responses.add(
......
......@@ -289,7 +289,7 @@ def test_load_corpus_classes_api_error(responses, mock_elements_worker):
] == BASE_API_CALLS + [
# We do 5 retries
(
"GET",
"GET",
"http://testserver/api/v1/corpus/11111111-1111-1111-1111-111111111111/classes/",
),
(
......@@ -344,14 +344,10 @@ def test_load_corpus_classes(responses, mock_elements_worker):
assert [
(call.request.method, call.request.url) for call in responses.calls
] == BASE_API_CALLS + [
<<<<<<< HEAD
(
"GET",
"http://testserver/api/v1/corpus/11111111-1111-1111-1111-111111111111/classes/",
),
=======
("GET", f"http://testserver/api/v1/corpus/{mock_elements_worker.corpus_id}/classes/"),
>>>>>>> a47eb52... Modif with the review
]
assert mock_elements_worker.classes == {
"12341234-1234-1234-1234-123412341234": {
......
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