Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Found via `typos --hidden --format brief`
  • Loading branch information
kianmeng committed May 7, 2024
1 parent 05bc436 commit 0f5928c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pytest_container/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def run_build_step(
) -> str:
"""Run the multistage build in the given ``tmp_path`` using the supplied
``runtime``. This function requires :py:meth:`prepare_build` to be run
beforehands.
beforehand.
Args:
tmp_path: the path in which the build was prepared.
Expand Down
8 changes: 4 additions & 4 deletions tests/test_port_forwarding.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def test_multiple_open_ports(container: ContainerData, number: int, host):
for name in LOCALHOST.interface.names()
if name[:2] in ("en", "et", "wl")
]
_ADDRESES = [
_ADDRESSES = [
addr
for addr in itertools.chain.from_iterable(
LOCALHOST.interface(interface).addresses for interface in _INTERFACES
Expand All @@ -198,22 +198,22 @@ def test_multiple_open_ports(container: ContainerData, number: int, host):
@pytest.mark.parametrize(
"addr,container",
zip(
_ADDRESES,
_ADDRESSES,
[
DerivedContainer(
base=WEB_SERVER,
forwarded_ports=[
PortForwarding(container_port=8000, bind_ip=addr)
],
)
for addr in _ADDRESES
for addr in _ADDRESSES
],
),
indirect=["container"],
)
def test_bind_to_address(addr: str, container: ContainerData, host) -> None:
"""address"""
for host_addr in _ADDRESES:
for host_addr in _ADDRESSES:
cmd = f"{_CURL} http://{host_addr}:{container.forwarded_ports[0].host_port}"
if addr == host_addr:
assert (
Expand Down
2 changes: 1 addition & 1 deletion tests/test_volumes.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def test_container_volume_writeable(container_per_test: ContainerData):
[LEAP_WITH_BIND_MOUNT_AND_VOLUME for _ in range(10)],
indirect=True,
)
def test_concurent_container_volumes(container_per_test: ContainerData):
def test_concurrent_container_volumes(container_per_test: ContainerData):
"""Test that containers can be launched using the same ContainerVolume or
BindMount and do not influence each other.
Expand Down

0 comments on commit 0f5928c

Please sign in to comment.