Fix style in tests
This commit is contained in:
16
test.py
16
test.py
@@ -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):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user