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
cbaa5075
Commit
cbaa5075
authored
7 years ago
by
martinRenou
Browse files
Options
Downloads
Patches
Plain Diff
Fix tests
parent
d22597b5
No related branches found
No related tags found
1 merge request
!101
Create probe classes for tests
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
force_bdss/tests/test_core_evaluation_driver.py
+8
-8
8 additions, 8 deletions
force_bdss/tests/test_core_evaluation_driver.py
with
8 additions
and
8 deletions
force_bdss/tests/test_core_evaluation_driver.py
+
8
−
8
View file @
cbaa5075
...
@@ -129,8 +129,8 @@ class OneValueKPICalculator(BaseKPICalculator):
...
@@ -129,8 +129,8 @@ class OneValueKPICalculator(BaseKPICalculator):
class
NullKPICalculatorFactory
(
BaseKPICalculatorFactory
):
class
NullKPICalculatorFactory
(
BaseKPICalculatorFactory
):
id
=
factory_id
(
"
enthought
"
,
"
null_kpic
"
)
id
=
factory_id
(
"
enthought
"
,
"
test_kpi_calculator
"
)
name
=
"
null_kpic
"
name
=
"
test_kpi_calculator
"
def
create_model
(
self
,
model_data
=
None
):
def
create_model
(
self
,
model_data
=
None
):
return
NullKPICalculatorModel
(
self
)
return
NullKPICalculatorModel
(
self
)
...
@@ -187,8 +187,8 @@ class TwoInputsThreeOutputsDataSource(BaseDataSource):
...
@@ -187,8 +187,8 @@ class TwoInputsThreeOutputsDataSource(BaseDataSource):
class
NullDataSourceFactory
(
BaseDataSourceFactory
):
class
NullDataSourceFactory
(
BaseDataSourceFactory
):
id
=
factory_id
(
"
enthought
"
,
"
null_ds
"
)
id
=
factory_id
(
"
enthought
"
,
"
test_data_source
"
)
name
=
"
null_ds
"
name
=
"
test_data_source
"
def
create_model
(
self
,
model_data
=
None
):
def
create_model
(
self
,
model_data
=
None
):
return
NullDataSourceModel
(
self
)
return
NullDataSourceModel
(
self
)
...
@@ -264,7 +264,7 @@ class TestCoreEvaluationDriver(unittest.TestCase):
...
@@ -264,7 +264,7 @@ class TestCoreEvaluationDriver(unittest.TestCase):
with
self
.
assertRaisesRegexp
(
with
self
.
assertRaisesRegexp
(
RuntimeError
,
RuntimeError
,
"
The number of data values \(1 values\)
"
"
The number of data values \(1 values\)
"
"
returned by
'
null_ds
'
does not match
"
"
returned by
'
test_data_source
'
does not match
"
"
the number of output slots
"
):
"
the number of output slots
"
):
driver
.
application_started
()
driver
.
application_started
()
...
@@ -279,7 +279,7 @@ class TestCoreEvaluationDriver(unittest.TestCase):
...
@@ -279,7 +279,7 @@ class TestCoreEvaluationDriver(unittest.TestCase):
with
self
.
assertRaisesRegexp
(
with
self
.
assertRaisesRegexp
(
RuntimeError
,
RuntimeError
,
"
The number of data values \(1 values\)
"
"
The number of data values \(1 values\)
"
"
returned by
'
null_ds
'
does not match
"
"
returned by
'
test_data_source
'
does not match
"
"
the number of user-defined names
"
):
"
the number of user-defined names
"
):
driver
.
application_started
()
driver
.
application_started
()
...
@@ -294,7 +294,7 @@ class TestCoreEvaluationDriver(unittest.TestCase):
...
@@ -294,7 +294,7 @@ class TestCoreEvaluationDriver(unittest.TestCase):
with
self
.
assertRaisesRegexp
(
with
self
.
assertRaisesRegexp
(
RuntimeError
,
RuntimeError
,
"
The number of data values \(1 values\)
"
"
The number of data values \(1 values\)
"
"
returned by
'
null_kpic
'
does not match
"
"
returned by
'
test_kpi_calculator
'
does not match
"
"
the number of output slots
"
):
"
the number of output slots
"
):
driver
.
application_started
()
driver
.
application_started
()
...
@@ -309,7 +309,7 @@ class TestCoreEvaluationDriver(unittest.TestCase):
...
@@ -309,7 +309,7 @@ class TestCoreEvaluationDriver(unittest.TestCase):
with
self
.
assertRaisesRegexp
(
with
self
.
assertRaisesRegexp
(
RuntimeError
,
RuntimeError
,
"
The number of data values \(1 values\)
"
"
The number of data values \(1 values\)
"
"
returned by
'
null_kpic
'
does not match
"
"
returned by
'
test_kpi_calculator
'
does not match
"
"
the number of user-defined names
"
):
"
the number of user-defined names
"
):
driver
.
application_started
()
driver
.
application_started
()
...
...
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