diff --git a/core/testcontainers/core/labels.py b/core/testcontainers/core/labels.py index df9c617b..0570b22c 100644 --- a/core/testcontainers/core/labels.py +++ b/core/testcontainers/core/labels.py @@ -19,7 +19,7 @@ def create_labels(image: str, labels: Optional[dict[str, str]]) -> dict[str, str else: for k in labels: if k.startswith(TESTCONTAINERS_NAMESPACE): - raise ValueError("The org.testcontainers namespace is reserved for interal use") + raise ValueError("The org.testcontainers namespace is reserved for internal use") labels[LABEL_LANG] = "python" labels[LABEL_TESTCONTAINERS] = "true" diff --git a/modules/arangodb/tests/test_arangodb.py b/modules/arangodb/tests/test_arangodb.py index f526bf38..01e4643a 100644 --- a/modules/arangodb/tests/test_arangodb.py +++ b/modules/arangodb/tests/test_arangodb.py @@ -13,7 +13,7 @@ IMAGE_VERSION = "3.11.8" -def arango_test_ops(arango_client, expeced_version, username="root", password=""): +def arango_test_ops(arango_client, expected_version, username="root", password=""): """ Basic ArangoDB operations to test DB really up and running. """ @@ -22,7 +22,7 @@ def arango_test_ops(arango_client, expeced_version, username="root", password="" # Taken from https://github.com/ArangoDB-Community/python-arango/blob/main/README.md # Connect to "_system" database as root user. sys_db = arango_client.db("_system", username=username, password=password) - assert sys_db.version() == expeced_version + assert sys_db.version() == expected_version # Create a new database named "test". sys_db.create_database("test") @@ -63,7 +63,7 @@ def test_docker_run_arango(): with pytest.raises(DatabaseCreateError): sys_db.create_database("test") - arango_test_ops(arango_client=client, expeced_version=IMAGE_VERSION, password=arango_root_password) + arango_test_ops(arango_client=client, expected_version=IMAGE_VERSION, password=arango_root_password) def test_docker_run_arango_without_auth(): @@ -75,7 +75,7 @@ def test_docker_run_arango_without_auth(): with ArangoDbContainer(image, arango_no_auth=True) as arango: client = ArangoClient(hosts=arango.get_connection_url()) - arango_test_ops(arango_client=client, expeced_version=IMAGE_VERSION, password="") + arango_test_ops(arango_client=client, expected_version=IMAGE_VERSION, password="") @pytest.mark.skipif(platform.processor() == "arm", reason="Test does not run on machines with ARM CPU") @@ -94,7 +94,7 @@ def test_docker_run_arango_older_version(): with ArangoDbContainer(image, arango_no_auth=True) as arango: client = ArangoClient(hosts=arango.get_connection_url()) - arango_test_ops(arango_client=client, expeced_version=image_version, password="") + arango_test_ops(arango_client=client, expected_version=image_version, password="") def test_docker_run_arango_random_root_password(): diff --git a/modules/rabbitmq/tests/test_rabbitmq.py b/modules/rabbitmq/tests/test_rabbitmq.py index 25c0fbbb..98fb7e6d 100644 --- a/modules/rabbitmq/tests/test_rabbitmq.py +++ b/modules/rabbitmq/tests/test_rabbitmq.py @@ -42,7 +42,7 @@ def test_docker_run_rabbitmq(port: Optional[int], username: Optional[str], passw channel.queue_declare(QUEUE, arguments={}) channel.queue_bind(QUEUE, EXCHANGE, ROUTING_KEY) - # pulish message: + # publish message: encoded_message = json.dumps(MESSAGE) channel.basic_publish(EXCHANGE, ROUTING_KEY, body=encoded_message) diff --git a/modules/weaviate/testcontainers/weaviate/__init__.py b/modules/weaviate/testcontainers/weaviate/__init__.py index e59e251e..c3398312 100644 --- a/modules/weaviate/testcontainers/weaviate/__init__.py +++ b/modules/weaviate/testcontainers/weaviate/__init__.py @@ -32,7 +32,7 @@ class WeaviateContainer(DbContainer): Additional environment variables to include with the container, e.g. ENABLE_MODULES list, QUERY_DEFAULTS_LIMIT setting. Example: - This example shows how to start Weaviate container with defualt settings. + This example shows how to start Weaviate container with default settings. .. doctest:: @@ -43,7 +43,7 @@ class WeaviateContainer(DbContainer): ... client.is_live() True - This example shows how to start Weaviate container with additinal settings. + This example shows how to start Weaviate container with additional settings. .. doctest::