tests/integration: Move test utils to one test_utils file

Signed-off-by: Monika Kairaityte <monika@kibit.lt>
This commit is contained in:
Monika Kairaityte
2025-01-22 22:16:07 +02:00
parent 7d5bf645f6
commit b685bce400
32 changed files with 76 additions and 80 deletions

View File

@ -3,6 +3,22 @@
import os
import subprocess
import time
from pathlib import Path
def base_path():
"""Returns the base path for the project"""
return Path(__file__).parent.parent.parent
def test_path():
"""Returns the path to the tests directory"""
return os.path.join(base_path(), "tests/integration")
def podman_compose_path():
"""Returns the path to the podman compose script"""
return os.path.join(base_path(), "podman_compose.py")
class RunSubprocessMixin: