1
0
mirror of https://github.com/nginx-proxy/nginx-proxy synced 2025-08-19 10:24:47 +02:00
nginx-proxy/test/test_virtual-path/test_default-root-none.py
2024-12-24 12:02:50 +01:00

11 lines
255 B
Python

import re
import time
def test_default_root_none(docker_compose, nginxproxy):
time.sleep(3)
conf = nginxproxy.get_conf().decode()
assert re.search(r"(?m)^\s*location\s+/path\s+\{", conf)
assert not re.search(r"(?m)^\s*location\s+/\s+\{", conf)