TMP
This commit is contained in:
@@ -6,5 +6,4 @@ def code(arg: Optional[bool]) -> str:
|
|||||||
return "a"
|
return "a"
|
||||||
elif arg is True:
|
elif arg is True:
|
||||||
return "b"
|
return "b"
|
||||||
else:
|
return "c"
|
||||||
return "c"
|
|
||||||
|
|||||||
@@ -3,6 +3,12 @@ import pytest
|
|||||||
from . import code
|
from . import code
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize("arg, expected", [(None, "a")])
|
@pytest.mark.parametrize(
|
||||||
|
"arg, expected",
|
||||||
|
[
|
||||||
|
(None, "a"),
|
||||||
|
(True, "b"),
|
||||||
|
],
|
||||||
|
)
|
||||||
def test_code(arg, expected):
|
def test_code(arg, expected):
|
||||||
assert code.code(arg) == expected
|
assert code.code(arg) == expected
|
||||||
|
|||||||
Reference in New Issue
Block a user