2020-08-09 17:14:23 +02:00
|
|
|
"""Utils for testing the entire package."""
|
|
|
|
|
|
|
|
import os
|
|
|
|
|
|
|
|
from urban_meal_delivery import config
|
|
|
|
|
|
|
|
|
2020-12-14 15:15:08 +01:00
|
|
|
# The TESTING environment variable is set
|
|
|
|
# in setup.cfg in pytest's config section.
|
2020-08-09 17:14:23 +02:00
|
|
|
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')
|