Skip to content

Commit 91fff1c

Browse files
committed
Rebase main
1 parent d31dede commit 91fff1c

13 files changed

+26
-21
lines changed

.github/workflows/ci-community.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
- arangodb
2626
- azurite
2727
- clickhouse
28+
- compose
2829
- elasticsearch
2930
- google
3031
- kafka

INDEX.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ testcontainers-python facilitates the use of Docker containers for functional an
1818
modules/arangodb/README
1919
modules/azurite/README
2020
modules/clickhouse/README
21+
modules/compose/README
2122
modules/elasticsearch/README
2223
modules/google/README
2324
modules/kafka/README

compose/setup.py

Lines changed: 0 additions & 17 deletions
This file was deleted.
File renamed without changes.

compose/testcontainers/compose/__init__.py renamed to modules/compose/testcontainers/compose/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ def __init__(
5555
services: Optional[List[str]] = None,
5656
) -> None:
5757
self.filepath = filepath
58-
self.compose_file_names = [compose_file_name] if isinstance(compose_file_name, str) else list(compose_file_name)
58+
if isinstance(compose_file_name, str):
59+
self.compose_file_names = [compose_file_name]
60+
else:
61+
self.compose_file_names = list(compose_file_name)
5962
self.pull = pull
6063
self.build = build
6164
self.env_file = env_file
File renamed without changes.

compose/tests/test_docker_compose.py renamed to modules/compose/tests/test_docker_compose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,4 @@ def test_can_exec_commands():
124124
result = compose.exec_in_container('hub', ['echo', 'my_test'])
125125
assert result[0] == 'my_test\n', "The echo should be successful"
126126
assert result[1] == '', "stderr should be empty"
127-
assert result[2] == 0, 'The exit code should be successful'
127+
assert result[2] == 0, 'The exit code should be successful'

poetry.lock

Lines changed: 17 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ packages = [
3131
{ include = "testcontainers", from = "modules/arangodb" },
3232
{ include = "testcontainers", from = "modules/azurite" },
3333
{ include = "testcontainers", from = "modules/clickhouse" },
34+
{ include = "testcontainers", from = "modules/compose" },
3435
{ include = "testcontainers", from = "modules/elasticsearch" },
3536
{ include = "testcontainers", from = "modules/google" },
3637
{ include = "testcontainers", from = "modules/k3s" },
@@ -88,6 +89,7 @@ selenium = { version = "*", optional = true }
8889
arangodb = ["python-arango"]
8990
azurite = ["azure-storage-blob"]
9091
clickhouse = ["clickhouse-driver"]
92+
compose = []
9193
elasticsearch = []
9294
google = ["google-cloud-pubsub"]
9395
k3s = ["kubernetes", "pyyaml"]

0 commit comments

Comments
 (0)