Skip to content

Commit 0ccc46d

Browse files
committed
clean up conditional
1 parent 30cd16d commit 0ccc46d

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

python/lib/sift_client/_tests/conftest.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,11 @@ def ci_pytest_tag(sift_client):
8181
def pytest_configure(config: pytest.Config) -> None:
8282
"""Pick a Sift plugin mode based on whether integration tests are running.
8383
84-
Integration runs (``-m integration``) stay online with the log file
85-
disabled so writes go inline against the real backend; missing
86-
``SIFT_*`` env vars surface as an actionable usage error from the
87-
plugin's ``sift_client`` fixture. Every other run defaults to
88-
``--sift-disabled`` so unit tests don't need credentials.
84+
Integration runs (``-m integration``) stay online with the default
85+
log-file pipeline enabled so CI exercises the JSONL write + import
86+
worker replay path that production users hit. Every other run defaults
87+
to ``--sift-disabled`` so unit tests don't need credentials.
8988
"""
9089
is_integration_run = "integration" in (config.option.markexpr or "")
91-
if is_integration_run:
92-
config.option.sift_log_file = False
93-
else:
90+
if not is_integration_run:
9491
config.option.sift_disabled = True

0 commit comments

Comments
 (0)