llama-stack-mirror/scripts
Matthew Farrellee 30b2e6a495
chore: default to pytest asyncio-mode=auto (#2730)
# What does this PR do?

previously, developers who ran `./scripts/unit-tests.sh` would get
`asyncio-mode=auto`, which meant `@pytest.mark.asyncio` and
`@pytest_asyncio.fixture` were redundent. developers who ran `pytest`
directly would get pytest's default (strict mode), would run into errors
leading them to add `@pytest.mark.asyncio` / `@pytest_asyncio.fixture`
to their code.

with this change -
- `asyncio_mode=auto` is included in `pyproject.toml` making behavior
consistent for all invocations of pytest
- removes all redundant `@pytest_asyncio.fixture` and
`@pytest.mark.asyncio`
 - for good measure, requires `pytest>=8.4` and `pytest-asyncio>=1.0`

## Test Plan

- `./scripts/unit-tests.sh`
- `uv run pytest tests/unit`
2025-07-11 13:00:24 -07:00
..
check-init-py.sh ci: vector_io provider integration tests (#2537) 2025-06-26 17:04:32 -07:00
check-workflows-use-hashes.sh chore: enforce no git tags or branches in external github actions (#2159) 2025-05-14 20:40:06 +02:00
distro_codegen.py chore: remove dead code (#2403) 2025-06-05 21:17:54 +02:00
gen-changelog.py chore: enable ruff for ./scripts too (#1643) 2025-03-18 12:17:21 -07:00
generate_prompt_format.py refactor: move all llama code to models/llama out of meta reference (#1887) 2025-04-07 15:03:58 -07:00
install.sh chore: move "install.sh" script into "scripts" dir (#2719) 2025-07-10 13:14:10 -07:00
provider_codegen.py docs: auto generated documentation for providers (#2543) 2025-06-30 15:13:20 +02:00
run_client_sdk_tests.py chore: consolidate scripts under ./scripts directory (#1646) 2025-03-17 17:56:30 -04:00
setup_telemetry.sh feat: improve telemetry (#2590) 2025-07-04 17:29:09 +02:00
unit-tests.sh chore: default to pytest asyncio-mode=auto (#2730) 2025-07-11 13:00:24 -07:00