1
0
mirror of https://github.com/nginx-proxy/nginx-proxy synced 2024-11-08 15:59:17 +01:00

fix 'requirements' path in test/test_build.py

Without this patch the test fails when run from project base directory.
This commit is contained in:
Gilles Filippini 2024-05-08 18:30:11 +02:00
parent ec405f31d7
commit 59d5293480

@ -4,13 +4,14 @@ Test that nginx-proxy-tester can build successfully
import pytest
import docker
import re
import os
client = docker.from_env()
@pytest.fixture(scope = "session")
def docker_build(request):
# Define Dockerfile path
dockerfile_path = "requirements/"
dockerfile_path = os.path.join(os.path.dirname(__file__), "requirements/")
dockerfile_name = "Dockerfile-nginx-proxy-tester"
# Build the Docker image