Python: Fix CLI integration tests · trailofbits/codeql@cac5a82 · GitHub
Skip to content

Commit cac5a82

Browse files
committed
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.
1 parent 0550c46 commit cac5a82

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎codeql-workspace.yml‎

Lines changed: 1 addition & 0 deletions

‎python/extractor/cli-integration-test/writing-diagnostics/test_diagnostics_output.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22
import sys
3-
sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "integration-tests"))
3+
sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "..", "..", "integration-tests"))
44
import diagnostics_test_utils
55

66
test_db = "db"

‎python/extractor/qlpack.yml‎

Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)