File: 0002-Remove-Mock.patch

package info (click to toggle)
python-pywebpush 2.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 300 kB
  • sloc: python: 853; makefile: 3
file content (21 lines) | stat: -rw-r--r-- 753 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
From: Tianyu Chen <billchenchina2001@gmail.com>
Date: Fri, 8 Aug 2025 01:18:10 +0800
Subject: Remove Mock

---
 pywebpush/tests/test_webpush.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pywebpush/tests/test_webpush.py b/pywebpush/tests/test_webpush.py
index 6f8378b..329f0ae 100644
--- a/pywebpush/tests/test_webpush.py
+++ b/pywebpush/tests/test_webpush.py
@@ -8,7 +8,7 @@ from typing import cast, Union, Dict
 import http_ece
 import py_vapid
 import requests
-from mock import patch, Mock, AsyncMock
+from unittest.mock import patch, Mock, AsyncMock
 from cryptography.hazmat.primitives.asymmetric import ec
 from cryptography.hazmat.primitives import serialization
 from cryptography.hazmat.backends import default_backend