Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
force-bdss
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Adham Hashibon
force-bdss
Commits
dc5d55ce
Commit
dc5d55ce
authored
6 years ago
by
Stefano Borini
Browse files
Options
Downloads
Patches
Plain Diff
Ported data source probe to new API
parent
8b4398f4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!130
Safer plugin import - 2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
force_bdss/tests/probe_classes/data_source.py
+11
-4
11 additions, 4 deletions
force_bdss/tests/probe_classes/data_source.py
with
11 additions
and
4 deletions
force_bdss/tests/probe_classes/data_source.py
+
11
−
4
View file @
dc5d55ce
...
...
@@ -49,10 +49,17 @@ class ProbeDataSourceModel(BaseDataSourceModel):
class
ProbeDataSourceFactory
(
BaseDataSourceFactory
,
ProbeEvaluatorFactory
):
id
=
Str
(
factory
_id
(
"
ent
hought
"
,
"
test_ds
"
))
name
=
Str
(
'
test_data_source
'
)
def
get
_ident
ifier
(
self
):
return
"
test_ds
"
model_class
=
Type
(
ProbeDataSourceModel
)
def
get_name
(
self
):
return
"
test_data_source
"
def
get_model_class
(
self
):
return
ProbeDataSourceModel
def
get_data_source_class
(
self
):
return
ProbeDataSource
def
create_model
(
self
,
model_data
=
None
):
if
model_data
is
None
:
...
...
@@ -67,7 +74,7 @@ class ProbeDataSourceFactory(BaseDataSourceFactory,
)
def
create_data_source
(
self
):
return
ProbeD
ata
S
ource
(
return
self
.
d
ata
_s
ource
_class
(
factory
=
self
,
run_function
=
self
.
run_function
,
)
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