Example #1
0
 def testSQL(self):
     executor = ex.SQLiteExecutor("SQL")
     self.assertRaises(Exception, executor.execute)
Example #2
0
 def testDef(self):
     executor = ex.SQLiteExecutor("$def f():return 1")
     self.assertRaises(Exception, executor.execute)
Example #3
0
 def testAggregate(self):
     executor = ex.SQLiteExecutor("$aggregate f():\n\tdef step(self):pass")
     self.assertRaises(Exception, executor.execute)
Example #4
0
 def testExport(self):
     executor = ex.SQLiteExecutor("$export a")
     self.assertRaises(Exception, executor.execute)
Example #5
0
 def testView(self):
     executor = ex.SQLiteExecutor("$view -1")
     self.assertRaises(Exception, executor.execute)
Example #6
0
 def testDump(self):
     executor = ex.SQLiteExecutor("$dump a")
     self.assertRaises(Exception, executor.execute)
Example #7
0
 def testPrint(self):
     executor = ex.SQLiteExecutor("$print ok")
     executor.execute()
Example #8
0
 def testEmpty(self):
     executor = ex.SQLiteExecutor("/* first script */")
     executor.execute()