Skip to content

Commit 1a3af2a

Browse files
committed
Literally one is actually three
1 parent fdc0000 commit 1a3af2a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_integration.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,19 +1247,19 @@ class TupleClassTap(Tap):
12471247

12481248
self.assertEqual(args.tup, true_args)
12491249

1250-
def test_tuple_literally_one(self):
1250+
def test_tuple_literally_three(self):
12511251
class LiterallyOne(Tap):
1252-
tup: Tuple[Literal[1]]
1252+
tup: Tuple[Literal[3]]
12531253

1254-
input_args = ("1",)
1255-
true_args = (1,)
1254+
input_args = ("3",)
1255+
true_args = (3,)
12561256

12571257
args = LiterallyOne().parse_args(["--tup", *input_args])
12581258

12591259
self.assertEqual(args.tup, true_args)
12601260

12611261
with self.assertRaises(SystemExit):
1262-
LiterallyOne().parse_args(["--tup", "2"])
1262+
LiterallyOne().parse_args(["--tup", "5"])
12631263

12641264
def test_tuple_literally_two(self):
12651265
class LiterallyTwo(Tap):

0 commit comments

Comments
 (0)