From bad6212008273b1bf028c0558b7bd0b8069a73a8 Mon Sep 17 00:00:00 2001 From: Bastian Germann Date: Mon, 29 Oct 2018 00:24:55 +0100 Subject: [PATCH] Test Py 3.7 compatibility --- tests/functional/openlp_core/api/http/test_wsgiapp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/functional/openlp_core/api/http/test_wsgiapp.py b/tests/functional/openlp_core/api/http/test_wsgiapp.py index 8f8048b6d..2d087c55c 100644 --- a/tests/functional/openlp_core/api/http/test_wsgiapp.py +++ b/tests/functional/openlp_core/api/http/test_wsgiapp.py @@ -69,7 +69,9 @@ class TestRouting(TestCase): rqst.method = 'GET' application.dispatch(rqst) # THEN: the not found id called - assert 1 == application.route_map['^\\/test\\/image$']['GET'].call_count, \ + route_key = next(iter(application.route_map)) + assert '/image' in route_key + assert 1 == application.route_map[route_key]['GET'].call_count, \ 'main_index function should have been called'