Skip to content

Commit

Permalink
typos (#580)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderankin authored May 24, 2024
1 parent 9eabb79 commit 9d2ceb6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion core/testcontainers/core/labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions modules/arangodb/tests/test_arangodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand All @@ -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")
Expand Down Expand Up @@ -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():
Expand All @@ -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")
Expand All @@ -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():
Expand Down
2 changes: 1 addition & 1 deletion modules/rabbitmq/tests/test_rabbitmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions modules/weaviate/testcontainers/weaviate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand All @@ -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::
Expand Down

0 comments on commit 9d2ceb6

Please sign in to comment.