Re-factor the ORM tests to use randomized fake data

- create `*Factory` classes with fakerboy and faker that generate
  randomized instances of the ORM models
- add new pytest marker: "db" are the integration tests involving the
  database whereas "e2e" will be all other integration tests
- streamline the docstrings in the ORM models
This commit is contained in:
Alexander Hess 2020-12-29 14:37:37 +01:00
commit 78dba23d5d
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
19 changed files with 1092 additions and 721 deletions

View file

@ -1,4 +1,4 @@
"""Provide the ORM's Customer model."""
"""Provide the ORM's `Customer` model."""
import sqlalchemy as sa
from sqlalchemy import orm
@ -7,7 +7,7 @@ from urban_meal_delivery.db import meta
class Customer(meta.Base):
"""A Customer of the UDP."""
"""A customer of the UDP."""
__tablename__ = 'customers'