Fix style in tests

This commit is contained in:
2021-03-27 15:54:37 +01:00
parent 3d37ef93c3
commit 4adceae497

16
test.py
View File

@@ -57,7 +57,6 @@ class TestArgClass(unittest.TestCase):
A.parse_args(['--arg3', 'welt'])
def test__boolean_true(self):
@argclass
@@ -66,7 +65,6 @@ class TestArgClass(unittest.TestCase):
assert A.parse_args(['--arg3']) == A(arg3=True)
def test__boolean_false(self):
@argclass
@@ -98,8 +96,11 @@ class TestArgClass(unittest.TestCase):
class A:
arg5: List
assert A.parse_args(['--arg5', 'hello', 'world']) == A(arg5=['hello', 'world'])
assert (
A.parse_args(['--arg5', 'hello', 'world'])
==
A(arg5=['hello', 'world'])
)
def test__list_str(self):
@@ -107,8 +108,11 @@ class TestArgClass(unittest.TestCase):
class A:
arg5: List[str]
assert A.parse_args(['--arg5', 'hello', 'world']) == A(arg5=['hello', 'world'])
assert (
A.parse_args(['--arg5', 'hello', 'world'])
==
A(arg5=['hello', 'world'])
)
def test__list_int(self):