mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-20 04:13:07 +02:00
Tests: Use faketime instead of time.sleep.
This commit is contained in:
parent
357850177d
commit
834b4ddab6
1 changed files with 1 additions and 3 deletions
|
@ -29,10 +29,8 @@
|
|||
import datetime
|
||||
import json
|
||||
import sys
|
||||
import time
|
||||
import numbers
|
||||
import os
|
||||
import re
|
||||
import unittest
|
||||
|
||||
# Ensure python finds the local simpletap module
|
||||
|
@ -109,7 +107,7 @@ class TestExportCommand(TestCase):
|
|||
|
||||
def test_export_end(self):
|
||||
self.t(('1', 'start'))
|
||||
time.sleep(2)
|
||||
self.t.faketime("+5s")
|
||||
self.t(('1', 'done'))
|
||||
self.assertTimestamp(self.export(1)['end'])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue