♻ 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

+1 -1
View File
@@ -2,7 +2,7 @@
from __future__ import absolute_import, division, print_function, unicode_literals
import unittest
import mock
import unittest.mock as mock
import ddt
import octoprint.util.comm
+1 -1
View File
@@ -6,7 +6,7 @@ __copyright__ = "Copyright (C) 2015 The OctoPrint Project - Released under terms
import io
import unittest
import mock
import unittest.mock as mock
import os
import ddt
import sys
+1 -1
View File
@@ -6,7 +6,7 @@ __copyright__ = "Copyright (C) 2017 The OctoPrint Project - Released under terms
import unittest
import ddt
import mock
import unittest.mock as mock
import socket
+1 -1
View File
@@ -6,7 +6,7 @@ __copyright__ = "Copyright (C) 2017 The OctoPrint Project - Released under terms
import unittest
import ddt
import mock
import unittest.mock as mock
import octoprint.util.pip
+1 -1
View File
@@ -6,7 +6,7 @@ __copyright__ = "Copyright (C) 2017 The OctoPrint Project - Released under terms
import unittest
import ddt
import mock
import unittest.mock as mock
@ddt.ddt
class PlatformUtilTest(unittest.TestCase):
+1 -1
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 RepeatedTimer
+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)