canaille-globuzma/tests/backends/memory/fixtures.py

10 lines
207 B
Python
Raw Normal View History

2023-04-15 11:00:02 +00:00
import pytest
from canaille.backends.memory.backend import Backend
@pytest.fixture
def memory_backend(configuration):
backend = Backend(configuration)
with backend.session():
yield backend