canaille-globuzma/tests/backends/test_backends.py

21 lines
515 B
Python
Raw Normal View History

2023-04-08 18:42:38 +00:00
import pytest
from canaille.backends import Backend
def test_required_methods(testclient):
with pytest.raises(NotImplementedError):
Backend.install()
2023-04-08 18:42:38 +00:00
with pytest.raises(NotImplementedError):
Backend.validate({})
backend = Backend(testclient.app.config)
2023-04-08 18:42:38 +00:00
with pytest.raises(NotImplementedError):
backend.setup()
with pytest.raises(NotImplementedError):
backend.teardown()
2022-11-01 11:25:21 +00:00
with pytest.raises(NotImplementedError):
backend.has_account_lockability()