mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
Swift: autopep8 test_schema.py
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user