updated tests · ag-python/python-cs50@5ecefbb · GitHub
Skip to content

Commit 5ecefbb

Browse files
committed
updated tests
1 parent a9ebcb7 commit 5ecefbb

4 files changed

Lines changed: 19 additions & 0 deletions

File tree

tests/flask/application.py

Lines changed: 3 additions & 0 deletions

tests/mysql.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import sys
2+
3+
sys.path.insert(0, "../src")
4+
5+
from cs50 import SQL
6+
7+
db = SQL("mysql://root@localhost/test")
8+
db.execute("SELECT 1")

tests/sqlite.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import sys
2+
3+
sys.path.insert(0, "../src")
4+
15
from cs50 import SQL
26

37
db = SQL("sqlite:///sqlite.db")

tests/tb.py

Lines changed: 4 additions & 0 deletions

0 commit comments

Comments
 (0)