From 7c0a4cb0b3b92b2ab94025ee02a6d89ab3a17f13 Mon Sep 17 00:00:00 2001 From: Gilles Filippini Date: Tue, 15 Jun 2021 23:55:31 +0200 Subject: [PATCH] fix: escape backslash in test --- test/test_debug/test_proxy-debug-flag.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_debug/test_proxy-debug-flag.py b/test/test_debug/test_proxy-debug-flag.py index b99ccef..af7f73a 100644 --- a/test/test_debug/test_proxy-debug-flag.py +++ b/test/test_debug/test_proxy-debug-flag.py @@ -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