mirror of
https://github.com/containers/podman-compose.git
synced 2024-12-11 17:20:44 +01:00
6f902faed0
Signed-off-by: BugFest <bugfest.dev@pm.me>
27 lines
590 B
Python
27 lines
590 B
Python
"""conftest.py
|
|
|
|
Defines global pytest fixtures available to all tests.
|
|
"""
|
|
# pylint: disable=redefined-outer-name
|
|
from pathlib import Path
|
|
import os
|
|
import pytest
|
|
|
|
|
|
@pytest.fixture
|
|
def base_path():
|
|
"""Returns the base path for the project"""
|
|
return Path(__file__).parent.parent
|
|
|
|
|
|
@pytest.fixture
|
|
def test_path(base_path):
|
|
"""Returns the path to the tests directory"""
|
|
return os.path.join(base_path, "tests")
|
|
|
|
|
|
@pytest.fixture
|
|
def podman_compose_path(base_path):
|
|
"""Returns the path to the podman compose script"""
|
|
return os.path.join(base_path, "podman_compose.py")
|