Skip to content
Snippets Groups Projects
Commit 93974ae3 authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

STY: autopep'd

parent c930c345
No related branches found
No related tags found
2 merge requests!39Release 0.4.0,!30F extend yaml model
Pipeline #19900 failed
......@@ -16,6 +16,8 @@ def to_file(string):
return f.name
# TODO: check purpose of this function... add documentation
def parse_str(string):
parse_model_from_yaml(to_file(string))
......@@ -68,7 +70,8 @@ RT2:
a:
"""
self.assertRaises(TwiceDefinedException, lambda: parse_model_from_yaml(to_file(string)))
self.assertRaises(TwiceDefinedException,
lambda: parse_model_from_yaml(to_file(string)))
def test_typical_case(self):
string = """
......@@ -103,7 +106,8 @@ RT5:
- RT1:
- RT2:
"""
self.assertRaises(ValueError, lambda: parse_model_from_yaml(to_file(string)))
self.assertRaises(
ValueError, lambda: parse_model_from_yaml(to_file(string)))
def test_unknown_kwarg(self):
string = """
......@@ -111,7 +115,8 @@ RT1:
datetime:
p1:
"""
self.assertRaises(ValueError, lambda: parse_model_from_yaml(to_file(string)))
self.assertRaises(
ValueError, lambda: parse_model_from_yaml(to_file(string)))
def test_definition_in_inheritance(self):
string = """
......@@ -121,7 +126,8 @@ RT2:
- RT1:
description: "tach"
"""
self.assertRaises(ValueError, lambda: parse_model_from_yaml(to_file(string)))
self.assertRaises(
ValueError, lambda: parse_model_from_yaml(to_file(string)))
def test_inheritance(self):
string = """
......@@ -332,7 +338,6 @@ A:
assert("line {}".format(line) in yde.exception.args[0])
def test_define_role():
model = """
A:
......@@ -387,7 +392,6 @@ b:
assert entities["A"].get_property("b").value == 42
assert entities["b"].value is None
model = """
b:
datatype: INTEGER
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment