remove flask deprecation warning during tests