File: remove_mock.patch

package info (click to toggle)
python-plyer 2.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,808 kB
  • sloc: python: 13,395; sh: 217; makefile: 177
file content (99 lines) | stat: -rw-r--r-- 2,362 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
--- a/plyer/tests/test_battery.py
+++ b/plyer/tests/test_battery.py
@@ -13,7 +13,7 @@
 from io import BytesIO
 from os.path import join
 from textwrap import dedent
-from mock import patch, Mock
+from unittest.mock import patch, Mock
 
 from plyer.tests.common import PlatformTest, platform_import
 
--- a/plyer/tests/test_cpu.py
+++ b/plyer/tests/test_cpu.py
@@ -11,7 +11,7 @@
 import unittest
 from os import environ
 from os.path import join
-from mock import patch, Mock
+from unittest.mock import patch, Mock
 from textwrap import dedent
 
 from plyer.tests.common import PlatformTest, platform_import, splitpath
--- a/plyer/tests/test_devicename.py
+++ b/plyer/tests/test_devicename.py
@@ -8,7 +8,7 @@
 '''
 
 import unittest
-from mock import patch
+from unittest.mock import patch
 from plyer.tests.common import PlatformTest, platform_import
 import socket
 
--- a/plyer/tests/test_email.py
+++ b/plyer/tests/test_email.py
@@ -9,7 +9,7 @@
 
 import unittest
 
-from mock import Mock, patch
+from unittest.mock import Mock, patch
 from plyer.tests.common import PlatformTest, platform_import
 
 
--- a/plyer/tests/test_facade.py
+++ b/plyer/tests/test_facade.py
@@ -16,7 +16,7 @@
 import sys
 from types import MethodType
 
-from mock import Mock, patch
+from unittest.mock import Mock, patch
 
 import plyer
 
--- a/plyer/tests/test_notification.py
+++ b/plyer/tests/test_notification.py
@@ -14,7 +14,7 @@
 from time import sleep
 from os.path import dirname, abspath, join
 
-from mock import Mock, patch
+from unittest.mock import Mock, patch
 from plyer.tests.common import PlatformTest, platform_import
 
 
--- a/plyer/tests/test_screenshot.py
+++ b/plyer/tests/test_screenshot.py
@@ -13,7 +13,7 @@
 from os import mkdir, remove
 from os.path import join, expanduser, exists
 
-from mock import patch
+from unittest.mock import patch
 from plyer.tests.common import PlatformTest, platform_import
 
 
--- a/plyer/tests/test_uniqueid.py
+++ b/plyer/tests/test_uniqueid.py
@@ -8,7 +8,7 @@
 '''
 
 import unittest
-from mock import patch, Mock
+from unittest.mock import patch, Mock
 from plyer.tests.common import PlatformTest, platform_import
 
 
--- a/plyer/tests/test_utils.py
+++ b/plyer/tests/test_utils.py
@@ -12,7 +12,7 @@
 '''
 
 import unittest
-from mock import patch
+from unittest.mock import patch
 
 
 class TestUtils(unittest.TestCase):