mirror of
https://github.com/element-hq/ess-helm.git
synced 2026-11-26 20:06:36 -08:00
23 lines
361 B
Python
23 lines
361 B
Python
import sys
|
|
from pathlib import Path
|
|
|
|
HERE = Path(__file__).resolve().parent
|
|
|
|
|
|
def run_tests():
|
|
|
|
import pytest
|
|
|
|
errcode = pytest.main([HERE] + sys.argv[1:])
|
|
sys.exit(errcode)
|
|
|
|
|
|
def setup_cluster():
|
|
import os
|
|
|
|
import pytest
|
|
|
|
os.environ["PYTEST_KEEP_CLUSTER"] = "1"
|
|
errcode = pytest.main([HERE] + ["--env-setup"])
|
|
sys.exit(errcode)
|