From 79c652ddd3fd3b2aa3442435f119f683de76613f Mon Sep 17 00:00:00 2001 From: autonomic-bot Date: Tue, 9 Jun 2026 22:50:55 +0000 Subject: [PATCH] =?UTF-8?q?test(plausible):=20psql=20-q=20in=20=5Fregister?= =?UTF-8?q?=5Fsite=20=E2=80=94=20-t=20does=20not=20suppress=20command=20ta?= =?UTF-8?q?gs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit psql -tAc still prints INSERT/CREATE command tags (e.g. "INSERT 0 1"), so _register_site asserted out == site against "INSERT 0 1\nsite" and both event-tracking roundtrip tests failed on their very first run (build 237 — the custom tier had never executed before; install always failed earlier). -q suppresses the tags; verified against the recipe db container. --- tests/plausible/functional/test_event_tracking.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/plausible/functional/test_event_tracking.py b/tests/plausible/functional/test_event_tracking.py index d99825e..bf99cdc 100644 --- a/tests/plausible/functional/test_event_tracking.py +++ b/tests/plausible/functional/test_event_tracking.py @@ -59,7 +59,7 @@ def _register_site(domain: str, site: str) -> None: f"SELECT domain FROM sites WHERE domain = '{site}';" ) out = lifecycle.exec_in_app( - domain, ["psql", "-U", "plausible", "-d", "plausible", "-tAc", sql], service="db" + domain, ["psql", "-q", "-U", "plausible", "-d", "plausible", "-tAc", sql], service="db" ).strip() assert out == site, f"site {site!r} not registered in postgres (got {out!r})" -- 2.49.0