test/utils: a route for the refresh-policy-now action
1 files changed, 5 insertions(+), 0 deletions(-)

M tshistory/testutil.py
M tshistory/testutil.py +5 -0
@@ 374,6 374,11 @@ def with_tester(uri, resp, wsgitester):
         callback=write_request_bridge(wsgitester.delete)
     )
 
+    resp.add_callback(
+        responses.PUT, uri + '/cache/refresh-policy-now',
+        callback=write_request_bridge(wsgitester.put)
+    )
+
 
 class WebTester(webtest.TestApp):