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
ff1965c3
Commit
ff1965c3
authored
6 years ago
by
Stefano Borini
Browse files
Options
Downloads
Patches
Plain Diff
Fixed error (for real this time)
parent
8cb882e5
No related branches found
No related tags found
1 merge request
!157
Added an empty list return from parameter factories
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
force_bdss/mco/tests/test_base_mco_factory.py
+14
-2
14 additions, 2 deletions
force_bdss/mco/tests/test_base_mco_factory.py
with
14 additions
and
2 deletions
force_bdss/mco/tests/test_base_mco_factory.py
+
14
−
2
View file @
ff1965c3
...
...
@@ -17,8 +17,20 @@ from envisage.plugin import Plugin
class
MCOFactory
(
BaseMCOFactory
):
def
get_identifier
(
self
):
return
"
dummy_mco_2
"
def
get_name
(
self
):
return
"
foo
"
return
"
Dummy MCO 2
"
def
get_model_class
(
self
):
return
DummyMCOModel
def
get_communicator_class
(
self
):
return
DummyMCOCommunicator
def
get_optimizer_class
(
self
):
return
DummyMCO
class
TestBaseMCOFactory
(
unittest
.
TestCase
):
...
...
@@ -38,7 +50,7 @@ class TestBaseMCOFactory(unittest.TestCase):
def
test_base_object_parameter_factories
(
self
):
factory
=
MCOFactory
(
self
.
plugin
)
self
.
assert
Not
Equal
(
factory
.
parameter_factories
(),
[])
self
.
assertEqual
(
factory
.
parameter_factories
(),
[])
def
test_broken_get_identifier
(
self
):
class
Broken
(
DummyMCOFactory
):
...
...
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