Convert Python qlref tests to inline expectations

This commit is contained in:
Owen Mansel-Chan
2026-06-15 11:06:48 +01:00
parent d6ade8fe95
commit 0c2df7c7e9
475 changed files with 1612 additions and 1382 deletions

View File

@@ -1 +1,2 @@
Testing/ImpreciseAssert.ql
query: Testing/ImpreciseAssert.ql
postprocess: utils/test/InlineExpectationsTestQuery.ql

View File

@@ -3,7 +3,7 @@ from unittest import TestCase
class MyTest(TestCase):
def test1(self):
self.assertTrue(1 == 1)
self.assertFalse(1 > 2)
self.assertTrue(1 in [1])
self.assertFalse(0 is "")
self.assertTrue(1 == 1) # $ Alert
self.assertFalse(1 > 2) # $ Alert
self.assertTrue(1 in [1]) # $ Alert
self.assertFalse(0 is "") # $ Alert