Commit 97af1f34 authored by Julien Cristau's avatar Julien Cristau
Browse files

[test] check some bits about the db schema on sqlite

parent 3d3395086085
......@@ -52,9 +52,11 @@ class PostgisTC(testlib.CubicWebTC):
class PostgisSQLiteFakeTC(testlib.CubicWebTC):
def test(self):
# do nothing, just make sure we can create the db / serialize the schema
def test_schema(self):
with self.admin_access.repo_cnx() as cnx:
self.assertTrue(cnx.find('CWEType', name=u'Geometry'))
city_schema = cnx.system_sql("select sql from sqlite_master where type = 'table' and name = 'cw_City'").fetchall()[0][0]
self.assertIn('cw_center_4326 text', city_schema)
if __name__ == '__main__':
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment