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
5927a444
Commit
5927a444
authored
4 years ago
by
Bastien Abadie
Browse files
Options
Downloads
Patches
Plain Diff
Remove MLTool unique unit test.
parent
cb83de03
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1031
Remove MLTool unique import
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arkindex/documents/tests/test_datasource.py
+0
-25
0 additions, 25 deletions
arkindex/documents/tests/test_datasource.py
with
0 additions
and
25 deletions
arkindex/documents/tests/test_datasource.py
deleted
100644 → 0
+
0
−
25
View file @
cb83de03
from
unittest.mock
import
MagicMock
from
django.test
import
TestCase
from
arkindex_common.ml_tool
import
MLTool
,
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
,
slug
=
'
something
'
,
name
=
'
some classifier
'
,
revision
=
'
1.2.3
'
,
internal
=
False
,
)
self
.
assertEqual
(
str
(
ds
),
'
something 1.2.3
'
)
This diff is collapsed.
Click to expand it.
Bastien Abadie
@babadie
mentioned in commit
df006cea
·
4 years ago
mentioned in commit
df006cea
Edited
4 years ago
by
Ghost User
mentioned in commit df006ceab91d914b93989ecd71559c511f27f070
Toggle commit list
Bastien Abadie
@babadie
mentioned in commit
0d13d154
·
4 years ago
mentioned in commit
0d13d154
Edited
4 years ago
by
Ghost User
mentioned in commit 0d13d154611a8dae40ed08b6263b73e8fa4ceae7
Toggle commit list
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