Skip to content
Snippets Groups Projects
Commit f458ee5f authored by morkolai's avatar morkolai
Browse files

#52 Glømte å fjerne LIMIT et sted

parent f6522442
No related branches found
No related tags found
1 merge request!27#52 Automatisk oppdatering av kodebok basert på tid
Pipeline #73954 passed
......@@ -256,8 +256,7 @@ class DatabaseTest(unittest.TestCase):
def test_seconds_to_next_update(self):
"""Compares 24h - time slept and the function return value."""
# Insert current time LastUpdated table in db
stmt = "UPDATE LastUpdated SET Timestamp = ? LIMIT 1"
self.database.conn.execute(stmt, (datetime.now(),))
self.database.update_last_updated()
# Sleeps to make time difference
sleep_time = 2
sleep(sleep_time)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment