canaille-globuzma/tests/backends/test_backends.py
2024-03-28 17:44:26 +01:00

16 lines
413 B
Python

import pytest
from canaille.backends import BaseBackend
def test_required_methods(testclient):
with pytest.raises(NotImplementedError):
BaseBackend.install(config=None)
with pytest.raises(NotImplementedError):
BaseBackend.validate({})
backend = BaseBackend(testclient.app.config["CANAILLE"])
with pytest.raises(NotImplementedError):
backend.has_account_lockability()