Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Backend
Commits
0d13d154
Commit
0d13d154
authored
4 years ago
by
Bastien Abadie
Committed by
Erwan Rouchet
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Remove MLTool unique unit test."
This reverts commit
5927a444
.
parent
cb83de03
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arkindex/documents/tests/test_datasource.py
+1
-10
1 addition, 10 deletions
arkindex/documents/tests/test_datasource.py
with
1 addition
and
10 deletions
arkindex/documents/tests/test_datasource.py
+
1
−
10
View file @
0d13d154
from
unittest.mock
import
MagicMock
from
django.test
import
TestCase
from
arkindex_common.ml_tool
import
MLTool
,
MLToolType
from
arkindex_common.ml_tool
import
MLToolType
from
arkindex.documents.models
import
DataSource
class
TestDataSource
(
TestCase
):
@classmethod
def
setUpTestData
(
cls
):
cls
.
ml_tool
=
MagicMock
(
spec
=
MLTool
)
cls
.
ml_tool
.
type
=
MLToolType
.
Recognizer
cls
.
ml_tool
.
slug
=
'
muddy
'
cls
.
ml_tool
.
name
=
'
Muddy Recognizer
'
cls
.
ml_tool
.
version
=
'
0.42
'
def
test_str
(
self
):
ds
=
DataSource
(
type
=
MLToolType
.
Classifier
,
...
...
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