2023-04-08 18:42:38 +00:00
|
|
|
import pytest
|
2024-03-15 18:58:06 +00:00
|
|
|
|
2024-04-16 20:42:29 +00:00
|
|
|
from canaille.backends import Backend
|
2023-04-08 18:42:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
def test_required_methods(testclient):
|
2023-04-10 09:44:30 +00:00
|
|
|
with pytest.raises(NotImplementedError):
|
2025-01-09 17:16:27 +00:00
|
|
|
Backend.install(app=None)
|
2023-04-10 09:44:30 +00:00
|
|
|
|
2023-04-08 18:42:38 +00:00
|
|
|
with pytest.raises(NotImplementedError):
|
2024-04-16 20:42:29 +00:00
|
|
|
Backend.validate({})
|
2023-04-08 18:42:38 +00:00
|
|
|
|
2024-04-16 20:42:29 +00:00
|
|
|
backend = Backend(testclient.app.config["CANAILLE"])
|
2022-11-01 11:25:21 +00:00
|
|
|
|
|
|
|
with pytest.raises(NotImplementedError):
|
|
|
|
backend.has_account_lockability()
|