Alexander Hess
c1064673aa
- create the global `config` object inside the `urban_meal_delivery.configuration` module - streamline documentation and comments
14 lines
387 B
Python
14 lines
387 B
Python
"""Utils for testing the entire package."""
|
|
|
|
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')
|
|
|
|
if not config.TESTING:
|
|
raise RuntimeError('The testing configuration was not loaded')
|