Skip to content
Snippets Groups Projects
Commit 4de18509 authored by Maximilian Schmidt's avatar Maximilian Schmidt
Browse files

Remove unused imports in test_parameter_check

parent febf8015
No related branches found
No related tags found
1 merge request!1Add all necessary files for the multi-area model
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)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment