- add new ORM models `ReplaySimulation` and `ReplayedOrder` to store the data generated by the routing simulations - add migrations script to create the corresponding database tables + create "replay_simulations" and "replayed_orders" tables + add missing check constraints to "orders" table + add unique constraint to "orders" table to enable compound key + drop unnecessary check constraints from the "orders" table - add tests for the new ORM models + add `simulation`, `replayed_order`, `make_replay_order()`, and `pre_order` fixtures + add `ReplayedOrderFactor` faker class - fix some typos
21 lines
1.1 KiB
Python
21 lines
1.1 KiB
Python
"""Fixtures for testing the ORM layer with fake data."""
|
|
|
|
from tests.db.fake_data.fixture_makers import make_address
|
|
from tests.db.fake_data.fixture_makers import make_courier
|
|
from tests.db.fake_data.fixture_makers import make_customer
|
|
from tests.db.fake_data.fixture_makers import make_order
|
|
from tests.db.fake_data.fixture_makers import make_replay_order
|
|
from tests.db.fake_data.fixture_makers import make_restaurant
|
|
from tests.db.fake_data.static_fixtures import address
|
|
from tests.db.fake_data.static_fixtures import city
|
|
from tests.db.fake_data.static_fixtures import city_data
|
|
from tests.db.fake_data.static_fixtures import courier
|
|
from tests.db.fake_data.static_fixtures import customer
|
|
from tests.db.fake_data.static_fixtures import grid
|
|
from tests.db.fake_data.static_fixtures import order
|
|
from tests.db.fake_data.static_fixtures import pixel
|
|
from tests.db.fake_data.static_fixtures import pre_order
|
|
from tests.db.fake_data.static_fixtures import replayed_order
|
|
from tests.db.fake_data.static_fixtures import restaurant
|
|
from tests.db.fake_data.static_fixtures import simulation
|
|
from tests.db.fake_data.static_fixtures import simulation_data
|