urban-meal-delivery/tests/db
Alexander Hess 54ff377579
Add CLI script to gridify all cities
- reorganize `urban_meal_delivery.console` into a sub-package
- move `tests.db.conftest` fixtures into `tests.conftest`
  => some integration tests regarding CLI scripts need a database
- add `urban_meal_delivery.console.decorators.db_revision` decorator
  to ensure the database is at a certain state before a CLI script runs
- refactor the `urban_meal_delivery.db.grids.Grid.gridify()` constructor:
  - bug fix: even empty `Pixel`s end up in the database temporarily
    => create `Pixel` objects only if an `Address` is to be assigned
       to it
  - streamline code and docstring
  - add further test cases
2021-01-06 16:17:05 +01:00
..
fake_data Rename _*_id columns into just *_id 2021-01-05 22:37:12 +01:00
utils Add Grid.gridify() constructor 2021-01-05 18:58:48 +01:00
__init__.py Add an ORM layer 2020-08-11 10:28:17 +02:00
test_addresses.py Adjust flake8 ... 2021-01-05 19:08:52 +01:00
test_addresses_pixels.py Add ORM models for the pixel grids 2021-01-03 19:33:36 +01:00
test_cities.py Rename _*_id columns into just *_id 2021-01-05 22:37:12 +01:00
test_couriers.py Re-factor the ORM tests to use randomized fake data 2020-12-29 15:40:32 +01:00
test_customer.py Re-factor the ORM tests to use randomized fake data 2020-12-29 15:40:32 +01:00
test_grids.py Add CLI script to gridify all cities 2021-01-06 16:17:05 +01:00
test_orders.py Adjust flake8 ... 2021-01-05 19:08:52 +01:00
test_pixels.py Add ORM models for the pixel grids 2021-01-03 19:33:36 +01:00
test_restaurants.py Re-factor the ORM tests to use randomized fake data 2020-12-29 15:40:32 +01:00