Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-django-tastypie for
openSUSE:Factory checked in at 2021-06-09 21:52:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-tastypie (Old)
and /work/SRC/openSUSE:Factory/.python-django-tastypie.new.32437 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-django-tastypie"
Wed Jun 9 21:52:48 2021 rev:16 rq:898569 version:0.14.3
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-django-tastypie/python-django-tastypie.changes
2021-02-23 20:22:29.883766738 +0100
+++
/work/SRC/openSUSE:Factory/.python-django-tastypie.new.32437/python-django-tastypie.changes
2021-06-09 21:53:14.706575593 +0200
@@ -1,0 +2,6 @@
+Wed Jun 9 00:20:27 UTC 2021 - John Vandenberg <[email protected]>
+
+- Fix a failing test using a chunk of upstream PR 1624
+ merged_pr_1624_chunk.patch
+
+-------------------------------------------------------------------
New:
----
merged_pr_1624_chunk.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-django-tastypie.spec ++++++
--- /var/tmp/diff_new_pack.DWJbld/_old 2021-06-09 21:53:15.134576356 +0200
+++ /var/tmp/diff_new_pack.DWJbld/_new 2021-06-09 21:53:15.138576363 +0200
@@ -24,6 +24,8 @@
License: BSD-3-Clause
URL: https://github.com/django-tastypie/django-tastypie
Source:
https://github.com/django-tastypie/django-tastypie/archive/v%{version}.tar.gz
+# PATCH-FIX-UPSTREAM merged_pr_1624_chunk.patch -- based on PR 1624
+Patch0: merged_pr_1624_chunk.patch
BuildRequires: %{python_module Django >= 1.11.0}
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module biplist}
@@ -51,6 +53,7 @@
%prep
%setup -q -n django-tastypie-%{version}
+%patch0 -p1
# https://github.com/django-tastypie/django-tastypie/issues/1617
sed -Ei
's/(test_apikey_and_authentication_enforce_user|test_is_authenticated)/_\1/'
tests/core/tests/authentication.py
@@ -63,17 +66,17 @@
%check
# The tests are doing what is specified in tox.ini
-%{python_expand export PYTHONPATH=./tests/
-$python -m django test -p '*' core.tests --settings=settings_core
-$python -m django test basic.tests --settings=settings_basic
-$python -m django test related_resource.tests --settings=settings_related
-$python -m django test alphanumeric.tests --settings=settings_alphanumeric
-$python -m django test authorization.tests --settings=settings_authorization
-$python -m django test content_gfk.tests --settings=settings_content_gfk
-$python -m django test customuser.tests --settings=settings_customuser
-$python -m django test namespaced.tests --settings=settings_namespaced
-$python -m django test slashless.tests --settings=settings_slashless
-$python -m django test validation.tests --settings=settings_validation
+%{python_expand export PYTHONPATH=${PWD}:${PWD}/tests/
+django-admin.py-%{$python_bin_suffix} test -p '*' core.tests
--settings=settings_core
+django-admin.py-%{$python_bin_suffix} test basic.tests
--settings=settings_basic
+django-admin.py-%{$python_bin_suffix} test related_resource.tests
--settings=settings_related
+django-admin.py-%{$python_bin_suffix} test alphanumeric.tests
--settings=settings_alphanumeric
+django-admin.py-%{$python_bin_suffix} test authorization.tests
--settings=settings_authorization
+django-admin.py-%{$python_bin_suffix} test content_gfk.tests
--settings=settings_content_gfk
+django-admin.py-%{$python_bin_suffix} test customuser.tests
--settings=settings_customuser
+django-admin.py-%{$python_bin_suffix} test namespaced.tests
--settings=settings_namespaced
+django-admin.py-%{$python_bin_suffix} test slashless.tests
--settings=settings_slashless
+django-admin.py-%{$python_bin_suffix} test validation.tests
--settings=settings_validation
}
%files %{python_files}
++++++ merged_pr_1624_chunk.patch ++++++
>From 3b435be55871f467b9f599b59821c1faa182742f Mon Sep 17 00:00:00 2001
From: Sam Thompson <[email protected]>
Date: Thu, 3 Jun 2021 10:28:26 -0700
Subject: Subset of [PATCH] Feature/django 3.2 (#1624)
* tests: Don't use private method _headers
diff --git a/tests/core/tests/resources.py b/tests/core/tests/resources.py
index b8c63aa2..96b3cd29 100644
--- a/tests/core/tests/resources.py
+++ b/tests/core/tests/resources.py
@@ -4937,7 +4937,7 @@ def test_browser_cache(self):
self.assertEqual(resp.status_code, 200)
self.assertEqual(resp.content.decode('utf-8'), '{"content": "This is
my very first post using my shiny new API. Pretty sweet, huh?", "created":
"2010-03-30T20:05:00", "id": 1, "is_active": true, "resource_uri":
"/api/v1/notes/1/", "slug": "first-post", "title": "First Post!", "updated":
"2010-03-30T20:05:00"}')
self.assertTrue(resp.has_header('Cache-Control'))
- self.assertEqual(resp._headers['cache-control'], ('Cache-Control',
'no-cache'))
+ self.assertEqual(resp['Cache-Control'], 'no-cache')
# Now as Ajax.
request.META = {'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest'}
@@ -4945,7 +4945,7 @@ def test_browser_cache(self):
self.assertEqual(resp.status_code, 200)
self.assertEqual(resp.content.decode('utf-8'), '{"content": "This is
my very first post using my shiny new API. Pretty sweet, huh?", "created":
"2010-03-30T20:05:00", "id": 1, "is_active": true, "resource_uri":
"/api/v1/notes/1/", "slug": "first-post", "title": "First Post!", "updated":
"2010-03-30T20:05:00"}')
self.assertTrue(resp.has_header('cache-control'))
- self.assertEqual(resp._headers['cache-control'], ('Cache-Control',
'no-cache'))
+ self.assertEqual(resp['Cache-Control'], 'no-cache')
def test_custom_paginator(self):
mock_request = MockRequest()