mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
Python: Add copy of extractor tests
These get to live next to the existing library and query tests, and are run as part of both the Python 2 and Python 3 language tests.
This commit is contained in:
1
python/ql/test/extractor-tests/script/options
Normal file
1
python/ql/test/extractor-tests/script/options
Normal file
@@ -0,0 +1 @@
|
||||
semmle-extractor-options: -R . --path no_exists
|
||||
3
python/ql/test/extractor-tests/script/script
Normal file
3
python/ql/test/extractor-tests/script/script
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
print("Hello World!")
|
||||
1
python/ql/test/extractor-tests/script/test.expected
Normal file
1
python/ql/test/extractor-tests/script/test.expected
Normal file
@@ -0,0 +1 @@
|
||||
| script |
|
||||
4
python/ql/test/extractor-tests/script/test.ql
Normal file
4
python/ql/test/extractor-tests/script/test.ql
Normal file
@@ -0,0 +1,4 @@
|
||||
import python
|
||||
|
||||
from Module m
|
||||
select m.getFile().getShortName()
|
||||
Reference in New Issue
Block a user