2021-07-24 00:06:05 +02:00
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
|
from . import code
|
|
|
|
|
|
|
|
|
|
|
2021-07-24 00:12:23 +02:00
|
|
|
@pytest.mark.parametrize(
|
|
|
|
|
"arg, expected",
|
|
|
|
|
[
|
|
|
|
|
(None, "a"),
|
|
|
|
|
(True, "b"),
|
|
|
|
|
],
|
|
|
|
|
)
|
2021-07-24 00:06:05 +02:00
|
|
|
def test_code(arg, expected):
|
|
|
|
|
assert code.code(arg) == expected
|