mirror of
https://github.com/emqx/neuron.git
synced 2026-10-18 13:41:22 +08:00
13 lines
282 B
Python
13 lines
282 B
Python
import pytest
|
|
|
|
|
|
def pytest_addoption(parser):
|
|
parser.addoption(
|
|
"--env", default="github", choices=["github", "test"], help="enviroment parameter"
|
|
)
|
|
|
|
|
|
@pytest.fixture(autouse=True, scope="session")
|
|
def get_envx(request):
|
|
return request.config.getoption("--env")
|