♻ mock => unittest.mock

This commit is contained in:
Gina Häußge committed 2020-07-06 15:05:33 +02:00
1 parent 288f6ac900
commit 54b3d770e7
20 files changed
+21 -24

No files matched your search

+2 -2
View File
@@ -6,7 +6,7 @@ __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agp
__copyright__ = "Copyright (C) 2015 The OctoPrint Project - Released under terms of the AGPLv3 License"
import unittest
import mock
import unittest.mock as mock
import time
from octoprint.util import ResettableTimer
@@ -50,7 +50,7 @@ class ResettableTimerTest(unittest.TestCase):
timer.start()
time.sleep(5)
timer.cancel()
time.sleep(10)