From 1a3af2a9e48fa2f0b2af25359f658cd55dd65a6b Mon Sep 17 00:00:00 2001 From: Kyle Swanson Date: Sat, 28 Sep 2024 15:49:04 -0700 Subject: [PATCH] Literally one is actually three --- tests/test_integration.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_integration.py b/tests/test_integration.py index 7ff7795..97d82b4 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -1247,19 +1247,19 @@ class TupleClassTap(Tap): self.assertEqual(args.tup, true_args) - def test_tuple_literally_one(self): + def test_tuple_literally_three(self): class LiterallyOne(Tap): - tup: Tuple[Literal[1]] + tup: Tuple[Literal[3]] - input_args = ("1",) - true_args = (1,) + input_args = ("3",) + true_args = (3,) args = LiterallyOne().parse_args(["--tup", *input_args]) self.assertEqual(args.tup, true_args) with self.assertRaises(SystemExit): - LiterallyOne().parse_args(["--tup", "2"]) + LiterallyOne().parse_args(["--tup", "5"]) def test_tuple_literally_two(self): class LiterallyTwo(Tap):