Skip to content

Commit

Permalink
chore: Automatically set docker path
Browse files Browse the repository at this point in the history
  • Loading branch information
timo-reymann committed Jul 20, 2024
1 parent 5cc6a9b commit e5a17c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
from pathlib import Path

import pytest
from testcontainers.core.container import DockerContainer
from testcontainers.core.image import DockerImage


@pytest.fixture(scope="session")
def docker_image():
image = DockerImage(path="..", tag="timoreymann/chrooted-ftp:local-test-image")

image = DockerImage(path=Path(__file__).parent.parent, tag="timoreymann/chrooted-ftp:local-test-image")
image.build()
return image

Expand Down

0 comments on commit e5a17c7

Please sign in to comment.