From 6d00e11e3ec2b0b71ccd2b15fb2386f23829b1ea Mon Sep 17 00:00:00 2001 From: Yehonatan Zecharia Date: Mon, 8 Jun 2026 12:37:02 +0300 Subject: [PATCH 1/3] Support overriding --server_url and --simulation_secret via env vars --- integration_test_utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/integration_test_utils.py b/integration_test_utils.py index dd245ef..4d9b0b6 100644 --- a/integration_test_utils.py +++ b/integration_test_utils.py @@ -17,6 +17,7 @@ import csv import json import logging +import os from pathlib import Path import threading import time @@ -60,10 +61,10 @@ class UnifiedUpdate(CheckoutUpdateRequest): FLAGS = flags.FLAGS try: - flags.DEFINE_string("server_url", None, "Base URL of the server") + flags.DEFINE_string("server_url", os.getenv("SERVER_URL"), "Base URL of the server") flags.DEFINE_string( "simulation_secret", - str(uuid.uuid4()), + os.getenv("SIMULATION_SECRET", str(uuid.uuid4())), "Secret for simulation endpoints", ) flags.DEFINE_integer( From 38b36501acd51ff34ccde35e89ae70120b881a42 Mon Sep 17 00:00:00 2001 From: Yehonatan Zecharia Date: Mon, 8 Jun 2026 12:37:39 +0300 Subject: [PATCH 2/3] Add a minimal conftest.py to allow executing suite via pytest --- conftest.py | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 conftest.py diff --git a/conftest.py b/conftest.py new file mode 100644 index 0000000..cd76699 --- /dev/null +++ b/conftest.py @@ -0,0 +1,2 @@ +from integration_test_utils import FLAGS +FLAGS(["pytest"]) From 5615539b88c4286bb0dab06cb7bc938d0e28f0c9 Mon Sep 17 00:00:00 2001 From: Yehonatan Zecharia Date: Mon, 8 Jun 2026 12:38:35 +0300 Subject: [PATCH 3/3] Document pytest support --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index bf3045c..e618d4f 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,9 @@ uv run ${test_file} \ --simulation_secret=${SIMULATION_SECRET} \ --conformance_input=test_data/flower_shop/conformance_input.json done + +# Or, if you prefer: +SERVER_URL=http://localhost:${MERCHANT_SERVER_PORT} SIMULATION_SECRET=${SIMULATION_SECRET} uv run pytest ``` ## Cleaning Up