Skip to content

Commit 031db26

Browse files
committed
fix 'requirements' path in test/test_build.py
Without this patch the test fails when run from project base directory.
1 parent f6c086e commit 031db26

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test_build.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
import pytest
55
import docker
66
import re
7+
import os
78

89
client = docker.from_env()
910

1011
@pytest.fixture(scope = "session")
1112
def docker_build(request):
1213
# Define Dockerfile path
13-
dockerfile_path = "requirements/"
14+
dockerfile_path = os.path.join(os.path.dirname(__file__), "requirements/")
1415
dockerfile_name = "Dockerfile-nginx-proxy-tester"
1516

1617
# Build the Docker image

0 commit comments

Comments
 (0)