canaille-globuzma/tests/backends/test_backends.py
2023-05-26 15:23:43 +02:00

20 lines
515 B
Python

import pytest
from canaille.backends import Backend
def test_required_methods(testclient):
with pytest.raises(NotImplementedError):
Backend.install()
with pytest.raises(NotImplementedError):
Backend.validate({})
backend = Backend(testclient.app.config)
with pytest.raises(NotImplementedError):
backend.setup()
with pytest.raises(NotImplementedError):
backend.teardown()
with pytest.raises(NotImplementedError):
backend.has_account_lockability()