From 0f561292228a2382814759454d910f92d54bb9a1 Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Thu, 13 Apr 2017 20:39:31 +0200 Subject: add some smoke tests --- tests/test.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/test.py (limited to 'tests/test.py') 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() -- cgit v1.2.3