Skip to content

Commit d046e39

Browse files
committed
Python: Fix tornado inline expectations in tests
After merge commit
1 parent 2a9e66a commit d046e39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/ql/test/experimental/library-tests/frameworks/tornado/response_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ def post(self): # $ requestHandler
3333

3434
class ExampleRedirect(tornado.web.RequestHandler):
3535
def get(self): # $ requestHandler
36-
self.redirect("http://example.com") # TODO: Model redirect
36+
url = "http://example.com"
37+
self.redirect(url) # $ HttpRedirectResponse HttpResponse redirectLocation=url
3738

3839

3940
class ExampleConnectionWrite(tornado.web.RequestHandler):

0 commit comments

Comments
 (0)