rnsh/tests/conftest.py
Aaron Heise d76b9880d4 Enhance test readiness and logging in RNS components
- Added `rns` dependency with support for pre-releases in `pyproject.toml`.
- Configured pytest to recognize test files and paths.
- Introduced early logging hints in the listener to improve test visibility.
- Implemented a delay in the initiator to ensure proper state before identification.
- Improved error handling and logging in the process management for better debugging.
- Added a new `conftest.py` for CI environment handling in tests.
2025-09-09 15:48:45 -04:00

12 lines
284 B
Python

import os
import pytest
def pytest_collection_modifyitems(config, items):
if os.getenv("CI"):
skip_ci = pytest.mark.skip(reason="Skipped in CI environment")
for item in items:
if "skip_ci" in item.keywords:
item.add_marker(skip_ci)