X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=tests%2Fdbtest_timestamps.py;h=8b35c63f804041f87e51e6e5a77ddc0f741f7d6d;hb=d5e281a9a28d2b2762fc8636863035538cc5703d;hp=1a53ae8665da5c9241370165bc5136c5926533a8;hpb=22b0b5b1963b6c298f6f619ad7cbbd262bf9ea77;p=dak.git diff --git a/tests/dbtest_timestamps.py b/tests/dbtest_timestamps.py index 1a53ae86..8b35c63f 100755 --- a/tests/dbtest_timestamps.py +++ b/tests/dbtest_timestamps.py @@ -4,7 +4,6 @@ from db_test import DBDakTestCase from daklib.dbconn import DBConn, Uid -from sqlalchemy import func import time import unittest @@ -16,15 +15,6 @@ class TimestampTestCase(DBDakTestCase): TODO: Should we check all tables? """ - def now(self): - "returns the current time at the db server" - - # we fetch a fresh session each time to avoid caching - local_session = DBConn().session() - current_time = local_session.query(func.now()).scalar() - local_session.close() - return current_time - def sleep(self): time.sleep(0.001)