Skip to content
Snippets Groups Projects
Commit 50422ebb authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

STY: autopep8

parent a2743289
No related branches found
No related tags found
2 merge requests!198REL: Release 0.10.0,!182Better error message
Pipeline #56535 passed with warnings
...@@ -233,7 +233,7 @@ def test_get_identifiable(): ...@@ -233,7 +233,7 @@ def test_get_identifiable():
id_r0 = ident.get_identifiable(se, []) id_r0 = ident.get_identifiable(se, [])
@ pytest.mark.xfail @pytest.mark.xfail
def test_retrieve_identified_record_for_identifiable(): def test_retrieve_identified_record_for_identifiable():
# TODO modify this such that it becomes a test that acutally tests (sufficiently) the # TODO modify this such that it becomes a test that acutally tests (sufficiently) the
# retrieve_identified_record_for_identifiable function # retrieve_identified_record_for_identifiable function
......
...@@ -319,7 +319,6 @@ def test_record_parents(): ...@@ -319,7 +319,6 @@ def test_record_parents():
assert len(rec.parents) == 1 assert len(rec.parents) == 1
def test_error_messages(): def test_error_messages():
data = { data = {
'Experiments': {} 'Experiments': {}
...@@ -334,7 +333,8 @@ EmptyConverter: ...@@ -334,7 +333,8 @@ EmptyConverter:
converter_registry = create_converter_registry(broken_definition) converter_registry = create_converter_registry(broken_definition)
with pytest.raises(RuntimeError, match="Definition of converter \"EmptyConverter\" is empty"): with pytest.raises(RuntimeError, match="Definition of converter \"EmptyConverter\" is empty"):
scan_structure_elements(DictElement(name="", value=data), broken_definition, converter_registry) scan_structure_elements(DictElement(name="", value=data),
broken_definition, converter_registry)
broken_yaml = """ broken_yaml = """
Converter: Converter:
...@@ -349,7 +349,9 @@ Converter: ...@@ -349,7 +349,9 @@ Converter:
converter_registry = create_converter_registry(broken_definition) converter_registry = create_converter_registry(broken_definition)
with pytest.raises(RuntimeError, match="dict expected, but found str: 42"): with pytest.raises(RuntimeError, match="dict expected, but found str: 42"):
scan_structure_elements(DictElement(name="", value=data), broken_definition, converter_registry) scan_structure_elements(DictElement(name="", value=data),
broken_definition, converter_registry)
def test_units(): def test_units():
"""Test the correct setting of units.""" """Test the correct setting of units."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment