2023-04-08 18:42:38 +00:00
|
|
|
import pytest
|
|
|
|
from canaille.backends import Backend
|
|
|
|
|
|
|
|
|
|
|
|
def test_required_methods(testclient):
|
2023-04-10 09:44:30 +00:00
|
|
|
with pytest.raises(NotImplementedError):
|
|
|
|
Backend.install()
|
|
|
|
|
2023-04-08 18:42:38 +00:00
|
|
|
with pytest.raises(NotImplementedError):
|
|
|
|
Backend.validate({})
|
|
|
|
|
2023-05-20 15:17:46 +00:00
|
|
|
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()
|