Skip to content
Snippets Groups Projects
Commit d056efb0 authored by Markus Holzer's avatar Markus Holzer
Browse files

Add test cases

parent 22b725d6
No related branches found
No related tags found
No related merge requests found
Pipeline #47303 passed
...@@ -60,6 +60,16 @@ def test_config(): ...@@ -60,6 +60,16 @@ def test_config():
assert config.default_number_int == BasicType('int64') assert config.default_number_int == BasicType('int64')
def test_config_target_as_string():
with pytest.raises(ValueError):
CreateKernelConfig(target='cpu')
def test_config_backend_as_string():
with pytest.raises(ValueError):
CreateKernelConfig(backend='C')
def test_config_python_types(): def test_config_python_types():
with pytest.raises(ValueError): with pytest.raises(ValueError):
CreateKernelConfig(data_type=float) CreateKernelConfig(data_type=float)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment