コード例 #1
0
 def test_last_repobased_eval_tms_2(self, pg_db_conn):
     """Test select empty repo-based eval timestamp"""
     with pg_db_conn:
         cur = pg_db_conn.cursor()
         cur.execute("delete from timestamp_kv where name = %s", (constants.TIMESTAMP_LAST_REPO_BASED_EVAL,))
         val = ServerApplication.get_last_repobased_eval_tms(cur)
         assert val is None
コード例 #2
0
 def test_last_repobased_eval_tms_1(self, pg_db_conn):
     """Test select repo-based eval timestamp"""
     with pg_db_conn:
         cur = pg_db_conn.cursor()
         val = ServerApplication.get_last_repobased_eval_tms(cur)
         assert val is not None