Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Base Worker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Workers
Base Worker
Commits
609e1676
Verified
Commit
609e1676
authored
2 years ago
by
NolanB
Committed by
Yoann Schneider
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Modif with the review
parent
b39465fb
No related branches found
No related tags found
1 merge request
!206
Helper for ListCorpusEntities
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
arkindex_worker/worker/classification.py
+0
-1
0 additions, 1 deletion
arkindex_worker/worker/classification.py
tests/test_elements_worker/test_entities.py
+1
-0
1 addition, 0 deletions
tests/test_elements_worker/test_entities.py
with
1 addition
and
1 deletion
arkindex_worker/worker/classification.py
+
0
−
1
View file @
609e1676
...
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
tests/test_elements_worker/test_entities.py
+
1
−
0
View file @
609e1676
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment