diff roundup/test/memorydb.py @ 6828:2ce855803633

Implement UpdateTimestamp for memorydb and test. Also test proper DbType when running memory test.
author John Rouillard <rouilj@ieee.org>
date Sun, 07 Aug 2022 10:03:27 -0400
parents 5053ee6c846b
children b1130680d4ed
line wrap: on
line diff
--- a/roundup/test/memorydb.py	Sun Aug 07 04:39:07 2022 -0400
+++ b/roundup/test/memorydb.py	Sun Aug 07 10:03:27 2022 -0400
@@ -194,7 +194,10 @@
     def close(self):
         pass
     def updateTimestamp(self, sessid):
-        pass
+        sess = self.get(sessid, '__timestamp', None)
+        now = time.time()
+        if sess is None or now > sess + 60:
+            self.set(sessid, __timestamp=now)
     def clean(self):
         pass
 

Roundup Issue Tracker: http://roundup-tracker.org/