- 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
9 lines
196 B
Python
9 lines
196 B
Python
"""Provide CLI scripts for the project."""
|
|
|
|
from urban_meal_delivery.console import gridify
|
|
from urban_meal_delivery.console import main
|
|
|
|
|
|
cli = main.entry_point
|
|
|
|
cli.add_command(gridify.gridify)
|