mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-17 15:36:48 +00:00
63 lines
1.6 KiB
Python
63 lines
1.6 KiB
Python
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",
|
|
"fixtures.logs",
|
|
"fixtures.traces",
|
|
]
|
|
|
|
|
|
def pytest_addoption(parser: pytest.Parser):
|
|
parser.addoption(
|
|
"--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",
|
|
default=False,
|
|
help="Teardown environment. Run pytest --basetemp=./tmp/ -vv --teardown src/bootstrap/setup::test_teardown to teardown your local dev environment.",
|
|
)
|
|
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",
|
|
default="25.5.6",
|
|
help="clickhouse version",
|
|
)
|
|
parser.addoption(
|
|
"--zookeeper-version",
|
|
action="store",
|
|
default="3.7.1",
|
|
help="zookeeper version",
|
|
)
|
|
parser.addoption(
|
|
"--schema-migrator-version",
|
|
action="store",
|
|
default="v0.129.6",
|
|
help="schema migrator version",
|
|
)
|