2025-04-16 18:54:05 +05:30
import pytest
pytest_plugins = [
" fixtures.auth " ,
" fixtures.clickhouse " ,
" fixtures.fs " ,
" fixtures.http " ,
" fixtures.migrator " ,
" fixtures.network " ,
" fixtures.postgres " ,
" fixtures.sql " ,
" fixtures.sqlite " ,
" fixtures.zookeeper " ,
" fixtures.signoz " ,
2025-07-29 14:44:16 +05:30
" fixtures.logs " ,
2025-07-31 15:42:34 +05:30
" fixtures.traces " ,
2025-04-16 18:54:05 +05:30
]
def pytest_addoption ( parser : pytest . Parser ) :
2025-04-26 15:50:02 +05:30
parser . addoption (
2025-07-29 14:44:16 +05:30
" --reuse " ,
action = " store_true " ,
default = False ,
help = " Reuse environment. Use pytest --basetemp=./tmp/ -vv --reuse src/bootstrap/setup::test_setup to setup your local dev environment for writing tests. " ,
)
parser . addoption (
" --teardown " ,
action = " store_true " ,
2025-04-26 15:50:02 +05:30
default = False ,
2025-07-29 14:44:16 +05:30
help = " Teardown environment. Run pytest --basetemp=./tmp/ -vv --teardown src/bootstrap/setup::test_teardown to teardown your local dev environment. " ,
2025-04-26 15:50:02 +05:30
)
2025-04-16 18:54:05 +05:30
parser . addoption (
" --sqlstore-provider " ,
action = " store " ,
default = " postgres " ,
help = " sqlstore provider " ,
)
parser . addoption (
" --postgres-version " ,
action = " store " ,
default = " 15 " ,
help = " postgres version " ,
)
parser . addoption (
" --clickhouse-version " ,
action = " store " ,
2025-09-24 14:54:43 +05:30
default = " 25.5.6 " ,
2025-04-16 18:54:05 +05:30
help = " clickhouse version " ,
)
parser . addoption (
" --zookeeper-version " ,
action = " store " ,
default = " 3.7.1 " ,
help = " zookeeper version " ,
)
parser . addoption (
" --schema-migrator-version " ,
action = " store " ,
2025-09-24 14:54:43 +05:30
default = " v0.129.6 " ,
2025-04-16 18:54:05 +05:30
help = " schema migrator version " ,
)