Skip to content

Commit

Permalink
fixup! Update to Atoti Python API 0.8.9
Browse files Browse the repository at this point in the history
  • Loading branch information
tibdex committed Feb 14, 2024
1 parent da3445f commit 8bdc96c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/docker/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,18 @@ def poetry_executable_path_fixture() -> str:


@pytest.fixture(name="docker_image_name", scope="session")
def docker_image_name_fixture(docker_executable_path: str, project_name: str) -> str:
def docker_image_name_fixture(
docker_executable_path: str,
project_name: str,
) -> Generator[str, None, None]:
tag = f"{project_name}:{uuid4()}"
build_image_output = run_command(
[docker_executable_path, "build", "--tag", tag, "."]
)
assert f"naming to docker.io/library/{tag}" in build_image_output
return tag
# remove_image_output = run_command([docker_executable_path, "image", "rm", tag])
# assert re.match("(Deleted|Untagged)", remove_image_output)
yield tag
remove_image_output = run_command([docker_executable_path, "image", "rm", tag])
assert re.match("(Deleted|Untagged)", remove_image_output)


@pytest.fixture(name="docker_client", scope="session")
Expand Down

0 comments on commit 8bdc96c

Please sign in to comment.