feat: add DuplicateError domain exception
This commit is contained in:
parent
627675fff1
commit
6c4ba79eed
2 changed files with 9 additions and 0 deletions
7
tests/test_store/test_exceptions.py
Normal file
7
tests/test_store/test_exceptions.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
from fastapi_oidc_op.store.exceptions import DuplicateError
|
||||
|
||||
|
||||
def test_duplicate_error_is_exception() -> None:
|
||||
error = DuplicateError("user already exists")
|
||||
assert isinstance(error, Exception)
|
||||
assert str(error) == "user already exists"
|
||||
Loading…
Add table
Add a link
Reference in a new issue