Skip to content

Commit a6d6fdf

Browse files
committed
placeholder for a threading test
1 parent c509bd0 commit a6d6fdf

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# pylint: disable=redefined-outer-name
2+
from datetime import date
3+
from sqlalchemy.orm import clear_mappers
4+
from unittest import mock
5+
import pytest
6+
from allocation import bootstrap, views
7+
from allocation.domain import commands
8+
from allocation.service_layer import handlers, unit_of_work
9+
10+
11+
@pytest.fixture
12+
def sqlite_bus(sqlite_session_factory):
13+
bus = bootstrap.bootstrap(
14+
start_orm=True,
15+
uow=unit_of_work.SqlAlchemyUnitOfWork(sqlite_session_factory),
16+
notifications=mock.Mock(),
17+
publish=lambda *args: None,
18+
)
19+
yield bus
20+
clear_mappers()
21+
22+
23+
def test_stuff():
24+
assert 1

0 commit comments

Comments
 (0)