diff options
author | Matthew Peveler <matt.peveler@gmail.com> | 2022-06-27 00:32:30 +0000 |
---|---|---|
committer | Matthew Peveler <matt.peveler@gmail.com> | 2022-06-27 00:32:30 +0000 |
commit | e87603df33e7f773c93c1f8c6ce675cdd376d82e (patch) | |
tree | fb654c2d83f449b7fbe6bbff9c6d4f8d95708d98 | |
parent | 545b79b8d7dae70d12bf0657359bdd36de0c5c26 (diff) | |
download | asciidoc-git-e87603df33e7f773c93c1f8c6ce675cdd376d82e.tar.gz |
Add failure test for set_compat_mode
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
-rw-r--r-- | tests/test_init.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_init.py b/tests/test_init.py new file mode 100644 index 0000000..107caf5 --- /dev/null +++ b/tests/test_init.py @@ -0,0 +1,11 @@ +from asciidoc import set_compat_mode +import pytest + + +@pytest.mark.parametrize( + 'inp', + (0, 3) +) +def test_invalid_compat_mode(inp) -> None: + with pytest.raises(ValueError): + set_compat_mode(inp) |