summaryrefslogtreecommitdiff
path: root/examples/server/tests/features/environment.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/server/tests/features/environment.py')
-rw-r--r--examples/server/tests/features/environment.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/server/tests/features/environment.py b/examples/server/tests/features/environment.py
index 09e82674..9fd330db 100644
--- a/examples/server/tests/features/environment.py
+++ b/examples/server/tests/features/environment.py
@@ -7,7 +7,10 @@ from signal import SIGKILL
def before_scenario(context, scenario):
- print(f"\x1b[33;42mStarting new scenario: {scenario.name}!\x1b[0m")
+ context.debug = 'DEBUG' in os.environ and os.environ['DEBUG'] == 'ON'
+ if context.debug:
+ print("DEBUG=ON\n")
+ print(f"\x1b[33;42mStarting new scenario: {scenario.name}!\x1b[0m\n")
port = 8080
if 'PORT' in os.environ:
port = int(os.environ['PORT'])