1
0
mirror of https://github.com/nginx-proxy/nginx-proxy synced 2026-05-11 12:37:39 +02:00
Files
Nicolas Duchon b5dea1cf50 tests: cleanup test code
- remove unused imports in test cases
- fix code smells and code style in conftest.py
2024-12-24 13:53:09 +01:00

7 lines
220 B
Python

import re
def test_predictable_upstream_is_present_in_nginx_generated_conf(docker_compose, nginxproxy):
conf = nginxproxy.get_conf().decode('ASCII')
assert re.search(r"upstream web\.nginx-proxy\.tld \{", conf)