summaryrefslogtreecommitdiff
path: root/tests/test.py
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2017-04-13 20:39:31 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2017-04-13 20:51:16 +0200
commit0f561292228a2382814759454d910f92d54bb9a1 (patch)
tree7bceb017446e61e32822f1439e098ed5fd02dda2 /tests/test.py
parent4f607ab5e30a97cf0de6abedb641ca5e041ac480 (diff)
add some smoke tests
Diffstat (limited to 'tests/test.py')
-rw-r--r--tests/test.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test.py b/tests/test.py
new file mode 100644
index 0000000..559946a
--- /dev/null
+++ b/tests/test.py
@@ -0,0 +1,8 @@
+from pysqlcipher import dbapi2 as sqlite
+conn = sqlite.connect('test.db')
+c = conn.cursor()
+c.execute("PRAGMA key='testaverylongpasswordisthisokey'")
+c.execute("create table stocks (date text, trans text, symbol text, qty real, price real)")
+c.execute("""insert into stocks values ('2006-01-05','BUY','RHAT',100,35.14)""")
+conn.commit()
+c.close()