diff --git a/pytest_container/build.py b/pytest_container/build.py index 0348698..4dca9d5 100644 --- a/pytest_container/build.py +++ b/pytest_container/build.py @@ -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. diff --git a/tests/test_port_forwarding.py b/tests/test_port_forwarding.py index 111beed..b3d87cd 100644 --- a/tests/test_port_forwarding.py +++ b/tests/test_port_forwarding.py @@ -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 @@ -198,7 +198,7 @@ def test_multiple_open_ports(container: ContainerData, number: int, host): @pytest.mark.parametrize( "addr,container", zip( - _ADDRESES, + _ADDRESSES, [ DerivedContainer( base=WEB_SERVER, @@ -206,14 +206,14 @@ def test_multiple_open_ports(container: ContainerData, number: int, host): 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 ( diff --git a/tests/test_volumes.py b/tests/test_volumes.py index 8cb88f5..aa38e32 100644 --- a/tests/test_volumes.py +++ b/tests/test_volumes.py @@ -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.