[Greater-commits] r3854 - trunk/GREAT-ER-DB/impl/postgresql/test
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Dec 2 15:13:43 CET 2011
Author: aheinecke
Date: 2011-12-02 15:13:42 +0100 (Fri, 02 Dec 2011)
New Revision: 3854
Modified:
trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_j_sess.py
Log:
Fix test by using an integer for db_sid
Modified: trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_j_sess.py
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_j_sess.py 2011-12-02 11:19:56 UTC (rev 3853)
+++ trunk/GREAT-ER-DB/impl/postgresql/test/test_pg_j_sess.py 2011-12-02 14:13:42 UTC (rev 3854)
@@ -52,7 +52,25 @@
da_db_connect("anonym", "123", self.connection_target)
def test_0_insert_sess_sess_disch(self):
- sess_record = DA_S_sess({'sess_id':0,'catch_id':101,'subst_id':101,'env_id':101,'market_id':101,'mod_id':101,'res_id':101,'sess_disch_id':101,'name':'sess239847','user_id':'anonym','cre_date':'30-01-2003','mod_date':'29-01-2003','status':'ready','privs':6, 'is_temp_sess':'Y','temp_sess_src_id':212,'temp_sess_db_sid':'','remark':'remark_string here!'})
+ sess_record = \
+ DA_S_sess({'sess_id':0,
+ 'catch_id':101,
+ 'subst_id':101,
+ 'env_id':101,
+ 'market_id':101,
+ 'mod_id':101,
+ 'res_id':101,
+ 'sess_disch_id':101,
+ 'name':'sess239847',
+ 'user_id':'anonym',
+ 'cre_date':'30-01-2003',
+ 'mod_date':'29-01-2003',
+ 'status':'ready',
+ 'privs':6,
+ 'is_temp_sess':'Y',
+ 'temp_sess_src_id':212,
+ 'temp_sess_db_sid':0,
+ 'remark':'remark_string here!'})
self.res = da_insert_sess(sess_record)
da_db_commit()
self.assertEquals(self.res,None)
More information about the Greater-commits
mailing list