Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-django-health-check for 
openSUSE:Factory checked in at 2022-05-09 18:44:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-health-check (Old)
 and      /work/SRC/openSUSE:Factory/.python-django-health-check.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-django-health-check"

Mon May  9 18:44:25 2022 rev:9 rq:975787 version:3.16.5

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-django-health-check/python-django-health-check.changes
    2022-01-07 12:48:09.939919803 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-django-health-check.new.1538/python-django-health-check.changes
  2022-05-09 18:45:22.496296952 +0200
@@ -1,0 +2,8 @@
+Mon May  9 10:16:02 UTC 2022 - pgaj...@suse.com
+
+- do not require python-mock for build
+- added patches
+  fix https://github.com/KristianOellegaard/django-health-check/issues/323
+  + python-django-health-check-no-mock.patch
+
+-------------------------------------------------------------------

New:
----
  python-django-health-check-no-mock.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-django-health-check.spec ++++++
--- /var/tmp/diff_new_pack.8RxhXG/_old  2022-05-09 18:45:23.008297553 +0200
+++ /var/tmp/diff_new_pack.8RxhXG/_new  2022-05-09 18:45:23.012297558 +0200
@@ -26,10 +26,11 @@
 License:        MIT
 URL:            https://github.com/KristianOellegaard/django-health-check
 Source:         
https://github.com/KristianOellegaard/django-health-check/archive/%{version}.tar.gz#/django-health-check-%{version}.tar.gz
+# https://github.com/KristianOellegaard/django-health-check/issues/323
+Patch0:         python-django-health-check-no-mock.patch
 BuildRequires:  %{python_module Django >= 1.11}
-BuildRequires:  %{python_module django-codemod}
 BuildRequires:  %{python_module celery}
-BuildRequires:  %{python_module mock}
+BuildRequires:  %{python_module django-codemod}
 BuildRequires:  %{python_module pytest-django}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module redis}
@@ -49,6 +50,7 @@
 
 %prep
 %setup -q -n django-health-check-%{version}
+%patch0 -p1
 # setuptools-scm fails for GitHub archives
 sed -i 's/use_scm_version=True/version="%{version}"/' setup.py
 
@@ -77,6 +79,7 @@
 }
 
 %check
+rm -rf /tmp/testenv
 mkdir /tmp/testenv
 mv tests /tmp/testenv
 cd /tmp/testenv

++++++ python-django-health-check-no-mock.patch ++++++
diff -upr django-health-check-3.16.5.orig/tests/test_cache.py 
django-health-check-3.16.5/tests/test_cache.py
--- django-health-check-3.16.5.orig/tests/test_cache.py 2022-05-09 
12:08:42.992985237 +0200
+++ django-health-check-3.16.5/tests/test_cache.py      2022-05-09 
12:08:43.004985311 +0200
@@ -1,6 +1,6 @@
 from django.core.cache.backends.base import BaseCache, CacheKeyWarning
 from django.test import TestCase
-from mock import patch
+from unittest.mock import patch
 
 from health_check.cache.backends import CacheBackend
 
diff -upr django-health-check-3.16.5.orig/tests/test_celery_ping.py 
django-health-check-3.16.5/tests/test_celery_ping.py
--- django-health-check-3.16.5.orig/tests/test_celery_ping.py   2022-05-09 
12:08:42.992985237 +0200
+++ django-health-check-3.16.5/tests/test_celery_ping.py        2022-05-09 
12:08:43.004985311 +0200
@@ -1,7 +1,7 @@
 import pytest
 from django.apps import apps
 from django.conf import settings
-from mock import patch
+from unittest.mock import patch
 
 from health_check.contrib.celery_ping.apps import HealthCheckConfig
 from health_check.contrib.celery_ping.backends import CeleryPingHealthCheck
diff -upr django-health-check-3.16.5.orig/tests/test_db.py 
django-health-check-3.16.5/tests/test_db.py
--- django-health-check-3.16.5.orig/tests/test_db.py    2022-05-09 
12:08:42.992985237 +0200
+++ django-health-check-3.16.5/tests/test_db.py 2022-05-09 12:08:43.004985311 
+0200
@@ -1,7 +1,7 @@
 from django.db import DatabaseError, IntegrityError
 from django.db.models import Model
 from django.test import TestCase
-from mock import patch
+from unittest.mock import patch
 
 from health_check.db.backends import DatabaseBackend
 
diff -upr django-health-check-3.16.5.orig/tests/test_migrations.py 
django-health-check-3.16.5/tests/test_migrations.py
--- django-health-check-3.16.5.orig/tests/test_migrations.py    2022-05-09 
12:08:42.992985237 +0200
+++ django-health-check-3.16.5/tests/test_migrations.py 2022-05-09 
12:08:43.004985311 +0200
@@ -1,6 +1,6 @@
 from django.db.migrations import Migration
 from django.test import TestCase
-from mock import patch
+from unittest.mock import patch
 
 from health_check.contrib.migrations.backends import MigrationsHealthCheck
 
diff -upr django-health-check-3.16.5.orig/tests/test_rabbitmq.py 
django-health-check-3.16.5/tests/test_rabbitmq.py
--- django-health-check-3.16.5.orig/tests/test_rabbitmq.py      2022-05-09 
12:08:42.992985237 +0200
+++ django-health-check-3.16.5/tests/test_rabbitmq.py   2022-05-09 
12:08:43.004985311 +0200
@@ -1,4 +1,4 @@
-import mock
+from unittest import mock
 from amqp.exceptions import AccessRefused
 
 from health_check.contrib.rabbitmq.backends import RabbitMQHealthCheck
diff -upr django-health-check-3.16.5.orig/tests/test_redis.py 
django-health-check-3.16.5/tests/test_redis.py
--- django-health-check-3.16.5.orig/tests/test_redis.py 2022-05-09 
12:08:42.992985237 +0200
+++ django-health-check-3.16.5/tests/test_redis.py      2022-05-09 
12:08:43.004985311 +0200
@@ -1,4 +1,4 @@
-import mock
+from unittest import mock
 from redis.exceptions import ConnectionError, TimeoutError
 
 from health_check.contrib.redis.backends import RedisHealthCheck
diff -upr django-health-check-3.16.5.orig/tests/test_storage.py 
django-health-check-3.16.5/tests/test_storage.py
--- django-health-check-3.16.5.orig/tests/test_storage.py       2022-05-09 
12:08:42.992985237 +0200
+++ django-health-check-3.16.5/tests/test_storage.py    2022-05-09 
12:08:43.004985311 +0200
@@ -1,4 +1,4 @@
-import mock
+from unittest import mock
 from django.core.files.storage import Storage
 from django.test import TestCase
 

Reply via email to