mirror of
https://github.com/containers/podman-compose.git
synced 2025-08-09 21:57:44 +02:00
updating black formatting
Signed-off-by: Dixon Whitmire <dixonwh@gmail.com>
This commit is contained in:
committed by
Muayyad Alsadi
parent
8d8df0bc28
commit
13856d2e9c
@ -10,7 +10,7 @@ from test_podman_compose import capture
|
||||
|
||||
@pytest.fixture
|
||||
def profile_compose_file(test_path):
|
||||
""""Returns the path to the `profile` compose file used for this test module"""
|
||||
""" "Returns the path to the `profile` compose file used for this test module"""
|
||||
return os.path.join(test_path, "profile", "docker-compose.yml")
|
||||
|
||||
|
||||
@ -34,20 +34,28 @@ def teardown(podman_compose_path, profile_compose_file):
|
||||
"profile-2",
|
||||
"-f",
|
||||
profile_compose_file,
|
||||
"down"
|
||||
"down",
|
||||
]
|
||||
capture(down_cmd)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("profiles, expected_services",
|
||||
[
|
||||
(["--profile", "profile-1", "up", "-d"],
|
||||
{"default-service": True, "service-1": True, "service-2": False}),
|
||||
(["--profile", "profile-2", "up", "-d"],
|
||||
{"default-service": True, "service-1": False, "service-2": True}),
|
||||
(["--profile", "profile-1", "--profile", "profile-2", "up", "-d"],
|
||||
{"default-service": True, "service-1": True, "service-2": True})
|
||||
])
|
||||
@pytest.mark.parametrize(
|
||||
"profiles, expected_services",
|
||||
[
|
||||
(
|
||||
["--profile", "profile-1", "up", "-d"],
|
||||
{"default-service": True, "service-1": True, "service-2": False},
|
||||
),
|
||||
(
|
||||
["--profile", "profile-2", "up", "-d"],
|
||||
{"default-service": True, "service-1": False, "service-2": True},
|
||||
),
|
||||
(
|
||||
["--profile", "profile-1", "--profile", "profile-2", "up", "-d"],
|
||||
{"default-service": True, "service-1": True, "service-2": True},
|
||||
),
|
||||
],
|
||||
)
|
||||
def test_up(podman_compose_path, profile_compose_file, profiles, expected_services):
|
||||
up_cmd = [
|
||||
"python3",
|
||||
|
Reference in New Issue
Block a user