Skip to content

Commit 2bf0b6a

Browse files
committed
Extend test
1 parent addefe9 commit 2bf0b6a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

scripts/update_lib/tests/test_patch_spec.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ def test_round_trip_with_patches_on_class(self):
349349
"""Test that extracted patches can be re-applied."""
350350
original = f"""import unittest
351351
352+
@unittest.skipIf(a == b, "{COMMENT}")
352353
@unittest.expectedFailure # {COMMENT}
353354
class TestFoo(unittest.TestCase):
354355
...
@@ -367,6 +368,7 @@ def test_one(self):
367368

368369
# Should have the decorator
369370
self.assertIn("@unittest.expectedFailure", result)
371+
self.assertIn("@unittest.skipIf", result)
370372
self.assertIn(COMMENT, result)
371373

372374

0 commit comments

Comments
 (0)