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

11 lines
220 B
Python
Raw Normal View History

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