urban-meal-delivery/tests/db
Alexander Hess a16c260543
Add database migrations
- use Alembic to migrate the PostgreSQL database
  + create initial migration script to set up the database,
    as an alternative to db.Base.metadata.create_all()
  + integrate Alembic into the test suite; the db_engine fixture
    now has two modes:
    * create the latest version of tables all at once
    * invoke `alembic upgrade head`
    => the "e2e" tests are all run twice, once in each mode; this
       ensures that the migration scripts re-create the same database
       schema as db.Base.metadata.create_all() would
    * in both modes, a temporary PostgreSQL schema is used to create the
      tables in
    => could now run "e2e" tests against production database and still
       have isolation
- make the configuration module public (to be used by Alembic)
- adjust linting rules for Alembic
2020-08-11 10:29:58 +02:00
..
__init__.py Add an ORM layer 2020-08-11 10:28:17 +02:00
conftest.py Add database migrations 2020-08-11 10:29:58 +02:00
test_addresses.py Add an ORM layer 2020-08-11 10:28:17 +02:00
test_cities.py Add an ORM layer 2020-08-11 10:28:17 +02:00
test_couriers.py Add an ORM layer 2020-08-11 10:28:17 +02:00
test_customer.py Add an ORM layer 2020-08-11 10:28:17 +02:00
test_orders.py Add an ORM layer 2020-08-11 10:28:17 +02:00
test_restaurants.py Add an ORM layer 2020-08-11 10:28:17 +02:00