Exemple #1
0
 def test_isolation_level(self):
     with deepstar_path():
         Model.db.execute('CREATE TABLE test (test TEXT)')
         Model.db.execute("INSERT INTO test (test) VALUES ('test')")
         Model.close()
         Model.init()
         self.assertEqual(
             Model.db.execute('SELECT test FROM test').fetchone(),
             ('test', ))  # noqa
Exemple #2
0
 def a():
     Model.init()