Repository navigation
Expand file tree
/
Copy pathpytest.ini
More file actions
36 lines (36 loc) · 2.51 KB
/
Copy pathpytest.ini
File metadata and controls
36 lines (36 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
[pytest]
asyncio_mode = auto
asyncio_default_fixture_loop_scope = function
# ``--strict-markers`` turns a typo'd mark into a COLLECTION ERROR instead of a
# silently-ignored one. Without it a mistyped ``@pytest.mark.integrationn``
# quietly puts an integration test back into the default selection: measured on
# this repo, ``-m 'not integration'`` then deselected 2 instead of 3 and exited
# 0, so a test that needs a live adapter ran as a unit test and went red for
# the wrong reason. ``--strict-config`` is the same contract for this file.
#
# Every custom mark used anywhere in the repo MUST be registered below, because
# the root config is the one pytest picks for a MIXED selection (repo-root paths
# plus package paths — e.g. the "Run provider unit tests" CI step), and
# ``--strict-markers`` then holds the whole run to this list. The package's own
# pyproject registers its own; this file has to cover the union.
addopts = --import-mode=importlib --strict-markers --strict-config
markers =
integration: requires a live agent/adapter/credentials or runs an in-process server topology; deselected with -m 'not integration'
integration_ai: real-agent end-to-end suite (tests/integration_ai)
ui: Playwright UI visual test (deep_worker_web)
live: starts its own server subprocess (deep_worker_web)
real_cli: drives the real Claude CLI subprocess and MUST see the real $HOME
requires: needs the named optional third-party package(s)
reuse_agent: reuse an existing agent process instead of killing it
allow_live_home: opt out of the autouse HOME-isolation fixture
real_adapter: needs a really installed ACP adapter and may touch the real adapter root; deselected with -m 'not real_adapter'
real_adapter_root_constant: asserts the REAL default adapter-root constant, so tests/acp_provider skips the root redirect for it; still guarded against writes and installs, so it stays safe in CI
# ``timeout`` belongs to the pytest-timeout plugin, which is a DEV EXTRA:
# CI installs neither it nor the extra. The plugin registers this mark
# itself when present, but under --strict-markers an absent plugin would
# make every file carrying @pytest.mark.timeout fail COLLECTION (verified:
# `-p no:timeout` + --strict-markers -> "'timeout' not found in markers
# configuration"). Registering it here is what keeps the mark declarative
# when the plugin is missing; duplicate registration with the plugin is
# harmless.
timeout: per-test wall-clock budget, enforced only when pytest-timeout is installed