diff --git a/python/ql/test/experimental/library-tests/FindSubclass/Find.expected b/python/ql/test/experimental/library-tests/FindSubclass/Find.expected new file mode 100644 index 00000000000..48813c67931 --- /dev/null +++ b/python/ql/test/experimental/library-tests/FindSubclass/Find.expected @@ -0,0 +1,3 @@ +| flask.View~Subclass | find_subclass_test | Member[A] | +| flask.View~Subclass | find_subclass_test | Member[B] | +| flask.View~Subclass | find_subclass_test | Member[View] | diff --git a/python/ql/test/experimental/library-tests/FindSubclass/Find.qlref b/python/ql/test/experimental/library-tests/FindSubclass/Find.qlref new file mode 100644 index 00000000000..f8bd638be1a --- /dev/null +++ b/python/ql/test/experimental/library-tests/FindSubclass/Find.qlref @@ -0,0 +1 @@ +meta/ClassHierarchy/Find.ql diff --git a/python/ql/test/experimental/library-tests/FindSubclass/find_subclass_test.py b/python/ql/test/experimental/library-tests/FindSubclass/find_subclass_test.py new file mode 100644 index 00000000000..541d7973844 --- /dev/null +++ b/python/ql/test/experimental/library-tests/FindSubclass/find_subclass_test.py @@ -0,0 +1,7 @@ +from flask.views import View + +class A(View): + pass + +class B(A): + pass