nginx-proxy-auto-docker/test/test_virtual-path/test_default-root-none.py
2024-12-24 12:02:50 +01:00

10 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)