mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Python: Fix CLI integration tests
Two issues: - Tests relying on existing query machinery (i.e. `import python`) were not resolving correctly due to a bad `qlpack.yml` file. - The diagnostics output tests needed an updated import to account for their new location.
This commit is contained in:
@@ -6,6 +6,7 @@ provide:
|
|||||||
- "*/ql/consistency-queries/qlpack.yml"
|
- "*/ql/consistency-queries/qlpack.yml"
|
||||||
- "*/ql/automodel/src/qlpack.yml"
|
- "*/ql/automodel/src/qlpack.yml"
|
||||||
- "*/ql/automodel/test/qlpack.yml"
|
- "*/ql/automodel/test/qlpack.yml"
|
||||||
|
- "python/extractor/qlpack.yml"
|
||||||
- "shared/**/qlpack.yml"
|
- "shared/**/qlpack.yml"
|
||||||
- "cpp/ql/test/query-tests/Security/CWE/CWE-190/semmle/tainted/qlpack.yml"
|
- "cpp/ql/test/query-tests/Security/CWE/CWE-190/semmle/tainted/qlpack.yml"
|
||||||
- "go/ql/config/legacy-support/qlpack.yml"
|
- "go/ql/config/legacy-support/qlpack.yml"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "integration-tests"))
|
sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "..", "..", "integration-tests"))
|
||||||
import diagnostics_test_utils
|
import diagnostics_test_utils
|
||||||
|
|
||||||
test_db = "db"
|
test_db = "db"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
name: extractor-python
|
name: extractor-python
|
||||||
dependencies:
|
dependencies:
|
||||||
codeql/python-all: "*"
|
codeql/python-all: ${workspace}
|
||||||
codeql/python-queries: "*"
|
codeql/python-queries: ${workspace}
|
||||||
extractor: python
|
extractor: python
|
||||||
warnOnImplicitThis: true
|
warnOnImplicitThis: true
|
||||||
|
|||||||
Reference in New Issue
Block a user