Skip to content

Commit fd63bab

Browse files
committed
Swift: autopep8 test_schema.py
1 parent 163d171 commit fd63bab

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

swift/codegen/test/test_schema.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ class D(B, C):
142142
pass
143143

144144
#
145+
146+
145147
def test_lowercase_rejected():
146148
with pytest.raises(schema.Error):
147149
@schema.load
@@ -304,6 +306,7 @@ class A:
304306
'A': schema.Class('A', pragmas=[expected]),
305307
}
306308

309+
307310
def test_class_with_pragmas():
308311
def apply_pragmas(cls):
309312
for p, _ in _pragmas:
@@ -336,6 +339,7 @@ class B(A):
336339
'B': schema.Class('B', bases=['A'], ipa=schema.IpaInfo(from_class="A")),
337340
}
338341

342+
339343
def test_ipa_from_class_ref():
340344
@schema.load
341345
class data:
@@ -351,6 +355,7 @@ class B(A):
351355
'B': schema.Class('B', bases=['A']),
352356
}
353357

358+
354359
def test_ipa_from_class_dangling():
355360
with pytest.raises(schema.Error):
356361
@schema.load
@@ -375,6 +380,7 @@ class B(A):
375380
'B': schema.Class('B', bases=['A'], ipa=schema.IpaInfo(on_arguments={'a': 'A', 'i': 'int'})),
376381
}
377382

383+
378384
def test_ipa_class_on_ref():
379385
class A:
380386
pass
@@ -393,6 +399,7 @@ class B(A):
393399
'B': schema.Class('B', bases=['A']),
394400
}
395401

402+
396403
def test_ipa_class_on_dangling():
397404
with pytest.raises(schema.Error):
398405
@schema.load

0 commit comments

Comments
 (0)