Skip to content

Commit a1c7ec8

Browse files
committed
Python: Accept .exepcted changes from importing frameworks from data-flow
Since `python.qll` has `private import semmle.python.dataflow.new.DataFlow`, that means that all tests now implicitly imports the frameworks modeling, and therefore any python class is part of the DjangoViewClassHelper ql class. https://github.com/github/codeql/blob/de8ecb214f4c2dcd0c0223f19d7eff7b2ee430e5/python/ql/lib/python.qll#L44
1 parent cd58c12 commit a1c7ec8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

python/ql/test/2/library-tests/locations/general/Locations.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
| Dict | 46 | 54 | 46 | 55 |
5656
| Dict | 48 | 9 | 48 | 19 |
5757
| DictUnpacking | 46 | 52 | 46 | 55 |
58+
| DjangoViewClassHelper | 4 | 1 | 4 | 8 |
5859
| Ellipsis | 7 | 7 | 7 | 9 |
5960
| Ellipsis | 50 | 14 | 50 | 16 |
6061
| ExceptStmt | 32 | 9 | 32 | 31 |

python/ql/test/3/library-tests/locations/general/Locations.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
| Dict | 46 | 54 | 46 | 55 |
4545
| Dict | 48 | 9 | 48 | 19 |
4646
| DictUnpacking | 46 | 52 | 46 | 55 |
47+
| DjangoViewClassHelper | 4 | 1 | 4 | 8 |
4748
| Ellipsis | 7 | 7 | 7 | 9 |
4849
| Ellipsis | 50 | 14 | 50 | 16 |
4950
| ExceptStmt | 32 | 9 | 32 | 31 |

0 commit comments

Comments
 (0)