Isolate configuration related code better

- create the global `config` object inside the
  `urban_meal_delivery.configuration` module
- streamline documentation and comments
This commit is contained in:
Alexander Hess 2020-12-14 15:15:08 +01:00
commit c1064673aa
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
4 changed files with 12 additions and 16 deletions

View file

@ -5,6 +5,8 @@ import os
from urban_meal_delivery import config
# The TESTING environment variable is set
# in setup.cfg in pytest's config section.
if not os.getenv('TESTING'):
raise RuntimeError('Tests must be executed with TESTING set in the environment')