Skip to content

Commit 37d03ee

Browse files
committed
Python: Accept .expected changes
Note that in this case, since there is a known `django.urls.path` route-setup, we know that the request-handler will only be passed keyword arguments, so it is not a mistake that `*args` is not considered a routed-parameter here (although it certainly wouldn't have hurt us if we did consider it a routed-parameter either).
1 parent 1bc8a6d commit 37d03ee

File tree

1 file changed

+1
-1
lines changed
  • python/ql/test/library-tests/frameworks/rest_framework

1 file changed

+1
-1
lines changed

python/ql/test/library-tests/frameworks/rest_framework/taint_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def test_taint(request: Request, routed_param): # $ requestHandler routedParamet
9090

9191

9292
class MyClass(APIView):
93-
def initial(self, request, *args, **kwargs): # $ requestHandler
93+
def initial(self, request, *args, **kwargs): # $ requestHandler routedParameter=kwargs
9494
# this method will be called before processing any request
9595
ensure_tainted(request) # $ tainted
9696

0 commit comments

Comments
 (0)