[dataimport/test] fix broken comparison
We want to compare two ints, not an int and a db row
--- a/dataimport/test/test_massive_store.py Wed Oct 21 20:17:44 2015 +0200
+++ b/dataimport/test/test_massive_store.py Wed Oct 21 20:19:11 2015 +0200
@@ -172,7 +172,7 @@
cnx.commit()
with self.admin_access.repo_cnx() as cnx:
crs = cnx.system_sql("SELECT * FROM entities_id_seq")
- self.assertTrue(crs.fetchone() > 50000)
+ self.assertTrue(crs.fetchone()[0] > 50000)
def test_eid_entity(self):
with self.admin_access.repo_cnx() as cnx: