Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
multi-area-model
Manage
Activity
Members
Labels
Plan
Issues
7
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IAS-6
multi-area-model
Commits
4de18509
Commit
4de18509
authored
7 years ago
by
Maximilian Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused imports in test_parameter_check
parent
febf8015
No related branches found
No related tags found
1 merge request
!1
Add all necessary files for the multi-area model
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_parameter_check.py
+5
-6
5 additions, 6 deletions
tests/test_parameter_check.py
with
5 additions
and
6 deletions
tests/test_parameter_check.py
+
5
−
6
View file @
4de18509
import
pytest
from
multiarea_model
import
MultiAreaModel
from
multiarea_model.default_params
import
network_params
"""
Test if the check for unused keys in
Test if the check for unused keys in
custom parameters works.
"""
...
...
@@ -11,22 +10,22 @@ custom parameters works.
def
test_network_params
():
net_params
=
{
'
x
'
:
3
}
with
pytest
.
raises
(
KeyError
):
M
=
MultiAreaModel
(
net_params
)
MultiAreaModel
(
net_params
)
def
test_conn_params
():
net_params
=
{
'
connection_params
'
:
{
'
x
'
:
3
}}
with
pytest
.
raises
(
KeyError
):
M
=
MultiAreaModel
(
net_params
)
MultiAreaModel
(
net_params
)
def
test_sim_params
():
sim_params
=
{
'
x
'
:
3
}
with
pytest
.
raises
(
KeyError
):
M
=
MultiAreaModel
({},
simulation
=
True
,
sim_spec
=
sim_params
)
MultiAreaModel
({},
simulation
=
True
,
sim_spec
=
sim_params
)
def
test_theory_params
():
theory_params
=
{
'
x
'
:
3
}
with
pytest
.
raises
(
KeyError
):
M
=
MultiAreaModel
({},
theory
=
True
,
theory_spec
=
theory_params
)
MultiAreaModel
({},
theory
=
True
,
theory_spec
=
theory_params
)
This diff is collapsed.
Click to expand it.
Preview
0%
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