Skip to content

Commit c476c89

Browse files
committed
Python: Add tests for peewee
1 parent 2d24387 commit c476c89

File tree

5 files changed

+25
-0
lines changed

5 files changed

+25
-0
lines changed

python/ql/test/library-tests/frameworks/peewee/ConceptsTest.expected

Whitespace-only changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import python
2+
import experimental.meta.ConceptsTest
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
argumentToEnsureNotTaintedNotMarkedAsSpurious
2+
untaintedArgumentToEnsureTaintedNotMarkedAsMissing
3+
failures
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import experimental.meta.InlineTaintTest
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import peewee
2+
import playhouse.pool
3+
4+
# This is just one example of one of the support databases
5+
# see https://docs.peewee-orm.com/en/latest/peewee/database.html
6+
db = peewee.MySQLDatabase()
7+
8+
conn = db.connection()
9+
cursor = conn.cursor()
10+
cursor.execute("sql") # $ MISSING: getSql="sql"
11+
12+
cursor = db.cursor()
13+
cursor.execute("sql") # $ MISSING: getSql="sql"
14+
15+
db.execute_sql("sql") # $ MISSING: getSql="sql"
16+
17+
# Pool extension
18+
pool = playhouse.pool.PooledMySQLDatabase(...)
19+
pool.execute_sql("sql") # $ MISSING: getSql="sql"

0 commit comments

Comments
 (0)