File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
python/ql/test/library-tests/ApiGraphs/py3 Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -16,4 +16,19 @@ class IntMyView(View): #$ use=moduleImport("pflask").getMember("views").getMembe
16
16
def my_internal_method (self ): #$ def=moduleImport("pflask").getMember("views").getMember("View").getASubclass().getMember("my_internal_method")
17
17
pass
18
18
19
- int_instance = IntMyView () #$ use=moduleImport("pflask").getMember("views").getMember("View").getASubclass().getReturn()
19
+ int_instance = IntMyView () #$ use=moduleImport("pflask").getMember("views").getMember("View").getASubclass().getReturn()
20
+
21
+ # ------------------------------------------------------------------------------
22
+ # Class decorator
23
+ # ------------------------------------------------------------------------------
24
+
25
+ def my_class_decorator (cls ):
26
+ print ("dummy decorator" )
27
+ return cls
28
+
29
+ @my_class_decorator
30
+ class MyViewWithDecorator (View ): #$ use=moduleImport("flask").getMember("views").getMember("View").getASubclass()
31
+ pass
32
+
33
+ class SubclassFromDecorated (MyViewWithDecorator ): #$ MISSING: use=moduleImport("flask").getMember("views").getMember("View").getASubclass().getASubclass()
34
+ pass
You can’t perform that action at this time.
0 commit comments