File: remove_mock.patch

package info (click to toggle)
gtg 0.6-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,492 kB
  • sloc: xml: 20,785; python: 17,657; sh: 158; makefile: 93
file content (60 lines) | stat: -rw-r--r-- 1,848 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
From: Debian Python Team <team+python@tracker.debian.org>
Date: Tue, 1 Apr 2025 17:44:11 -0300
Subject: remove_mock

---
 tests/backend/backend_caldav_test.py | 2 +-
 tests/core/test_config.py            | 2 +-
 tests/core/test_timer.py             | 2 +-
 tests/test_utils.py                  | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/backend/backend_caldav_test.py b/tests/backend/backend_caldav_test.py
index 521d7ae..51d594a 100644
--- a/tests/backend/backend_caldav_test.py
+++ b/tests/backend/backend_caldav_test.py
@@ -11,7 +11,7 @@ from GTG.backends.backend_caldav import (CATEGORIES, CHILDREN_FIELD,
 from GTG.core.datastore import DataStore
 from GTG.core.dates import LOCAL_TIMEZONE, Date
 from GTG.core.task import Task
-from mock import Mock, patch
+from unittest.mock import Mock, patch
 from tests.test_utils import MockTimer
 
 NAMESPACE = 'unittest'
diff --git a/tests/core/test_config.py b/tests/core/test_config.py
index 6eee15e..2607a91 100644
--- a/tests/core/test_config.py
+++ b/tests/core/test_config.py
@@ -19,7 +19,7 @@
 from unittest import TestCase
 import configparser
 
-from mock import patch, mock_open, Mock
+from unittest.mock import patch, mock_open, Mock
 
 from GTG.core.config import open_config_file, SectionConfig
 
diff --git a/tests/core/test_timer.py b/tests/core/test_timer.py
index ada5074..fb7d584 100644
--- a/tests/core/test_timer.py
+++ b/tests/core/test_timer.py
@@ -18,7 +18,7 @@
 
 import datetime
 
-from mock import patch
+from unittest.mock import patch
 from unittest import TestCase
 
 from GTG.core.timer import Timer
diff --git a/tests/test_utils.py b/tests/test_utils.py
index e9903e1..6db524b 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -1,4 +1,4 @@
-from mock import Mock
+from unittest.mock import Mock
 
 
 class MockThread(Mock):