Coverage for packages/core/src/integrify/test.py: 100%
8 statements
« prev ^ index » next coverage.py v7.16.0, created at 2026-10-19 02:39 +0000
« prev ^ index » next coverage.py v7.16.0, created at 2026-10-19 02:39 +0000
1import os
3import pytest
6def pytest_addoption(parser):
7 parser.addoption(
8 '--live',
9 action='store_true',
10 dest='liverun',
11 default=False,
12 help='enable live tests with tokens provided',
13 )
16live = pytest.mark.skipif("not config.getoption('liverun')", allow_module_level=True)
17"""Tests that need live environment to run"""
20def requires_env(*env_keys):
21 return pytest.mark.skipif(
22 any(not os.getenv(ek, None) for ek in env_keys),
23 reason='Env variables are not set',
24 )