nginx-proxy-auto-docker/test/test_virtual-path/test_default-root-none.py
2024-12-26 00:20:10 +01:00

7 lines
232 B
Python

import re
def test_default_root_none(docker_compose, nginxproxy):
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)