From 87c86bb902f03e952bce4b550de8205bb68753a8 Mon Sep 17 00:00:00 2001 From: Steve Pulec Date: Tue, 25 Jun 2013 12:36:21 -0400 Subject: [PATCH] Need to reset app view functions to prevent Flask assertion error on resetting view functions. --- moto/server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/moto/server.py b/moto/server.py index 18980bffe..5746a7108 100644 --- a/moto/server.py +++ b/moto/server.py @@ -26,6 +26,8 @@ class RegexConverter(BaseConverter): def configure_urls(service): backend = globals()["{}_backend".format(service)] from werkzeug.routing import Map + # Reset view functions to reset the app + app.view_functions = {} app.url_map = Map() app.url_map.converters['regex'] = RegexConverter for url_path, handler in backend.flask_paths.iteritems():