Swift: autopep8 test_schema.py

This commit is contained in:
Paolo Tranquilli
2022-09-21 16:15:52 +02:00
parent 163d1717d7
commit fd63bab054

View File

@@ -142,6 +142,8 @@ def test_no_mixed_groups_in_bases():
pass
#
def test_lowercase_rejected():
with pytest.raises(schema.Error):
@schema.load
@@ -304,6 +306,7 @@ def test_class_with_pragma(pragma, expected):
'A': schema.Class('A', pragmas=[expected]),
}
def test_class_with_pragmas():
def apply_pragmas(cls):
for p, _ in _pragmas:
@@ -336,6 +339,7 @@ def test_ipa_from_class():
'B': schema.Class('B', bases=['A'], ipa=schema.IpaInfo(from_class="A")),
}
def test_ipa_from_class_ref():
@schema.load
class data:
@@ -351,6 +355,7 @@ def test_ipa_from_class_ref():
'B': schema.Class('B', bases=['A']),
}
def test_ipa_from_class_dangling():
with pytest.raises(schema.Error):
@schema.load
@@ -375,6 +380,7 @@ def test_ipa_class_on():
'B': schema.Class('B', bases=['A'], ipa=schema.IpaInfo(on_arguments={'a': 'A', 'i': 'int'})),
}
def test_ipa_class_on_ref():
class A:
pass
@@ -393,6 +399,7 @@ def test_ipa_class_on_ref():
'B': schema.Class('B', bases=['A']),
}
def test_ipa_class_on_dangling():
with pytest.raises(schema.Error):
@schema.load