test_default-root-none.py 255 B

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