mirror of
https://github.com/thib8956/nginx-proxy
synced 2025-02-24 09:48:14 +00: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:
parent
ec405f31d7
commit
59d5293480
@ -4,13 +4,14 @@ Test that nginx-proxy-tester can build successfully
|
|||||||
import pytest
|
import pytest
|
||||||
import docker
|
import docker
|
||||||
import re
|
import re
|
||||||
|
import os
|
||||||
|
|
||||||
client = docker.from_env()
|
client = docker.from_env()
|
||||||
|
|
||||||
@pytest.fixture(scope = "session")
|
@pytest.fixture(scope = "session")
|
||||||
def docker_build(request):
|
def docker_build(request):
|
||||||
# Define Dockerfile path
|
# Define Dockerfile path
|
||||||
dockerfile_path = "requirements/"
|
dockerfile_path = os.path.join(os.path.dirname(__file__), "requirements/")
|
||||||
dockerfile_name = "Dockerfile-nginx-proxy-tester"
|
dockerfile_name = "Dockerfile-nginx-proxy-tester"
|
||||||
|
|
||||||
# Build the Docker image
|
# Build the Docker image
|
||||||
|
Loading…
x
Reference in New Issue
Block a user