atropos/atroposlib/tests
0xbyt4 4d8e9b8086 fix: use sys.executable instead of hardcoded "python" in tests
Tests that launch the API server via subprocess used a hardcoded
"python" command which fails on systems where only "python3" is
available (e.g. macOS). Using sys.executable ensures the same
interpreter running pytest is used for subprocesses.

Fixes 36 test errors on macOS environments.
2026-03-05 17:04:45 -05:00
..
test_utils feat: add minimum batch allocation support for environments 2025-07-07 08:50:28 -05:00
api_test_utils.py fix: use sys.executable instead of hardcoded "python" in tests 2026-03-05 17:04:45 -05:00
conftest.py Add n kwarg being ignored workaround 2025-05-12 12:06:03 -05:00
README.md Fix API to accept messages without reward field + comprehensive tests 2025-06-09 14:03:08 -05:00
test_advantages.py Remove dependency on torch for default installation 2025-05-12 10:17:41 -05:00
test_api_compression.py fix: use sys.executable instead of hardcoded "python" in tests 2026-03-05 17:04:45 -05:00
test_api_legacy.py Fix API to accept messages without reward field + comprehensive tests 2025-06-09 14:03:08 -05:00
test_api_messages_handling.py fix: use sys.executable instead of hardcoded "python" in tests 2026-03-05 17:04:45 -05:00
test_api_messages_handling_README.md Fix API to accept messages without reward field + comprehensive tests 2025-06-09 14:03:08 -05:00
test_jsonl2html.py [pre-commit.ci] auto fixes from pre-commit.com hooks 2026-01-14 21:36:05 +00:00
test_managed_server.py managed_Server pass through and centralize sem logic 2026-03-05 15:46:33 -05:00
test_openai_api_workarounds.py Update test_openai_api_workarounds.py 2026-01-29 10:13:50 +02:00
test_reasoning_models.py update test to reflect the change in reasoning effort mapping 2026-01-15 07:48:52 +00:00
test_server_logprobs.py [pre-commit.ci] auto fixes from pre-commit.com hooks 2026-03-05 20:48:17 +00:00
test_trl_vllm_server.py Add regression test for TRL vLLM completion wrapper 2026-02-06 01:57:16 +05:30
test_vllm_api_server_generate.py testing 2026-03-03 23:38:04 -05:00

Running Tests

This section contains instructions and guidelines for running the test suite. Please ensure all tests pass before submitting contributions.

We use pytest for our testing framework.

Simply run pytest from the main directory and you're good to go.