Fix a couple issues and update docs

Signed-off-by: Falmarri <463948+Falmarri@users.noreply.github.com>
This commit is contained in:
Falmarri
2023-12-10 15:26:58 -08:00
committed by Muayyad Alsadi
parent 38b13a34ea
commit 3c9628b462
10 changed files with 48 additions and 25 deletions

View File

@ -21,7 +21,8 @@ def test_podman_compose_extends_w_file_subdir():
main_path = Path(__file__).parent.parent
command_up = [
"python3",
"coverage",
"run",
str(main_path.joinpath("podman_compose.py")),
"-f",
str(main_path.joinpath("tests", "extends_w_file_subdir", "docker-compose.yml")),

View File

@ -22,7 +22,7 @@ def test_config_no_profiles(podman_compose_path, profile_compose_file):
:param podman_compose_path: The fixture used to specify the path to the podman compose file.
:param profile_compose_file: The fixtued used to specify the path to the "profile" compose used in the test.
"""
config_cmd = ["python3", podman_compose_path, "-f", profile_compose_file, "config"]
config_cmd = ["coverage", "run", podman_compose_path, "-f", profile_compose_file, "config"]
out, _, return_code = capture(config_cmd)
assert return_code == 0
@ -61,7 +61,7 @@ def test_config_profiles(
:param expected_services: Dictionary used to model the expected "enabled" services in the profile.
Key = service name, Value = True if the service is enabled, otherwise False.
"""
config_cmd = ["python3", podman_compose_path, "-f", profile_compose_file]
config_cmd = ["coverage", "run", podman_compose_path, "-f", profile_compose_file]
config_cmd.extend(profiles)
out, _, return_code = capture(config_cmd)

View File

@ -20,7 +20,8 @@ def test_podman_compose_include():
main_path = Path(__file__).parent.parent
command_up = [
"python3",
"coverage",
"run",
str(main_path.joinpath("podman_compose.py")),
"-f",
str(main_path.joinpath("tests", "include", "docker-compose.yaml")),

View File

@ -27,7 +27,8 @@ def teardown(podman_compose_path, profile_compose_file):
yield
down_cmd = [
"python3",
"coverage",
"run",
podman_compose_path,
"--profile",
"profile-1",
@ -59,7 +60,8 @@ def teardown(podman_compose_path, profile_compose_file):
)
def test_up(podman_compose_path, profile_compose_file, profiles, expected_services):
up_cmd = [
"python3",
"coverage",
"run",
podman_compose_path,
"-f",
profile_compose_file,