Skip to content

Commit dd5b883

Browse files
committed
Test TapIgnore for class variables
1 parent 06301fc commit dd5b883

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_tap_ignore.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ class Args(Tap):
2929
self.assertIn("c", actions)
3030
self.assertNotIn("d", actions)
3131
self.assertNotIn("e", actions)
32+
self.assertNotIn("b", args.class_variables)
33+
self.assertNotIn("d", args.class_variables)
34+
self.assertNotIn("e", args.class_variables)
3235

3336
def test_tap_ignore_no_default(self):
3437
class Args(Tap):
@@ -74,6 +77,9 @@ class SubArgs(BaseArgs):
7477
self.assertNotIn("base_ignore", actions)
7578
self.assertIn("sub_keep", actions)
7679
self.assertNotIn("sub_ignore", actions)
80+
self.assertNotIn("b", args.class_variables)
81+
self.assertNotIn("d", args.class_variables)
82+
self.assertNotIn("e", args.class_variables)
7783

7884
def test_tap_ignore_subclass_override(self):
7985
# Case 1: Override ignored with argument

0 commit comments

Comments
 (0)