Skip to content

Commit 4e36078

Browse files
authored
add seperate class for cli tests
1 parent adfcc24 commit 4e36078

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Lib/test/test_uuid.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,6 +1140,9 @@ def test_uuid_weakref(self):
11401140
weak = weakref.ref(strong)
11411141
self.assertIs(strong, weak())
11421142

1143+
1144+
class TestUUIDCli(BaseTestUUID, unittest.TestCase):
1145+
uuid = py_uuid
11431146
@mock.patch.object(sys, "argv", ["", "-u", "uuid3", "-n", "@dns"])
11441147
@mock.patch('sys.stderr', new_callable=io.StringIO)
11451148
def test_cli_namespace_required_for_uuid3(self, mock_err):
@@ -1228,7 +1231,6 @@ def test_cli_uuid1(self):
12281231
self.assertEqual(output, str(uuid_output))
12291232
self.assertEqual(uuid_output.version, 1)
12301233

1231-
12321234
@mock.patch.object(sys, "argv",
12331235
["", "-u", "uuid6"])
12341236
def test_cli_uuid6(self):
@@ -1243,7 +1245,6 @@ def test_cli_uuid6(self):
12431245
self.assertEqual(output, str(uuid_output))
12441246
self.assertEqual(uuid_output.version, 6)
12451247

1246-
12471248
@mock.patch.object(sys, "argv",
12481249
["", "-u", "uuid7"])
12491250
def test_cli_uuid7(self):
@@ -1258,7 +1259,6 @@ def test_cli_uuid7(self):
12581259
self.assertEqual(output, str(uuid_output))
12591260
self.assertEqual(uuid_output.version, 7)
12601261

1261-
12621262
@mock.patch.object(sys, "argv",
12631263
["", "-u", "uuid8"])
12641264
def test_cli_uuid8(self):
@@ -1273,7 +1273,6 @@ def test_cli_uuid8(self):
12731273
self.assertEqual(output, str(uuid_output))
12741274
self.assertEqual(uuid_output.version, 8)
12751275

1276-
12771276
class TestUUIDWithoutExtModule(BaseTestUUID, unittest.TestCase):
12781277
uuid = py_uuid
12791278

0 commit comments

Comments
 (0)