Blame SOURCES/0001-Use-mock-from-unittest.patch

7c7800
From 2254382cdfc0b9baa01727d913db96ef2914258e Mon Sep 17 00:00:00 2001
7c7800
From: Joel Capitao <jcapitao@redhat.com>
7c7800
Date: Mon, 17 Feb 2025 08:59:44 -0500
7c7800
Subject: [PATCH] Use mock from unittest
7c7800
7c7800
---
7c7800
 setup.py               | 2 +-
7c7800
 tests/requirements.txt | 1 -
7c7800
 tests/test_fields.py   | 2 +-
7c7800
 tests/test_reqparse.py | 2 +-
7c7800
 4 files changed, 3 insertions(+), 4 deletions(-)
7c7800
7c7800
diff --git a/setup.py b/setup.py
7c7800
index af62397..3e69037 100755
7c7800
--- a/setup.py
7c7800
+++ b/setup.py
7c7800
@@ -57,7 +57,7 @@ setup(
7c7800
     platforms='any',
7c7800
     test_suite = 'nose.collector',
7c7800
     install_requires=requirements,
7c7800
-    tests_require=['Flask-RESTful', 'mock>=0.8', 'blinker'],
7c7800
+    tests_require=['Flask-RESTful', 'blinker'],
7c7800
     # Install these with "pip install -e '.[docs]'
7c7800
     extras_require={
7c7800
         'docs': 'sphinx',
7c7800
diff --git a/tests/requirements.txt b/tests/requirements.txt
7c7800
index c998ba3..d497805 100644
7c7800
--- a/tests/requirements.txt
7c7800
+++ b/tests/requirements.txt
7c7800
@@ -1,4 +1,3 @@
7c7800
 nose>=1.1.2
7c7800
-mock>=0.8
7c7800
 nosexcover
7c7800
 blinker
7c7800
diff --git a/tests/test_fields.py b/tests/test_fields.py
7c7800
index f12b617..225075e 100644
7c7800
--- a/tests/test_fields.py
7c7800
+++ b/tests/test_fields.py
7c7800
@@ -2,7 +2,7 @@ from decimal import Decimal
7c7800
 from functools import partial
7c7800
 import pytz
7c7800
 import unittest
7c7800
-from mock import Mock
7c7800
+from unittest.mock import Mock
7c7800
 from flask_restful.fields import MarshallingException
7c7800
 from flask_restful.utils import OrderedDict
7c7800
 from flask_restful import fields
7c7800
diff --git a/tests/test_reqparse.py b/tests/test_reqparse.py
7c7800
index 1d75e40..cf3d534 100644
7c7800
--- a/tests/test_reqparse.py
7c7800
+++ b/tests/test_reqparse.py
7c7800
@@ -1,6 +1,6 @@
7c7800
 # -*- coding: utf-8 -*-
7c7800
 import unittest
7c7800
-from mock import Mock, patch
7c7800
+from unittest.mock import Mock, patch
7c7800
 from flask import Flask
7c7800
 from werkzeug import exceptions
7c7800
 from werkzeug.wrappers import Request
7c7800
-- 
7c7800
2.43.5
7c7800