Add test suite

This commit is contained in:
Aaron Heise 2023-02-11 11:09:22 -06:00
parent fcfc503184
commit 86906fd8f4
9 changed files with 225 additions and 18 deletions

9
tests/test_exception.py Normal file
View file

@ -0,0 +1,9 @@
import pytest
import rnsh.exception as exception
def test_permit():
with pytest.raises(SystemExit):
with exception.permit(SystemExit):
raise Exception("Should not bubble")
with exception.permit(SystemExit):
raise SystemExit()