1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-02-24 09:48:14 +00:00

fix: escape backslash in test

This commit is contained in:
Gilles Filippini 2021-06-15 23:55:31 +02:00
parent fca248a965
commit 7c0a4cb0b3

View File

@ -9,4 +9,4 @@ def test_debug_info_is_present_in_nginx_generated_conf(docker_compose, nginxprox
re.search(r"# Exposed ports: \[\{\d+\.\d+\.\d+\.\d+\s+83\s+tcp \} \{\d+\.\d+\.\d+\.\d+\s+82\s+tcp \}\]", conf)
assert "# Default virtual port: 80" in conf
assert "# VIRTUAL_PORT: 82" in conf
assert conf.count("# /!\ Virtual port not exposed") == 1
assert conf.count("# /!\\ Virtual port not exposed") == 1