Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pytest-djangoapp for openSUSE:Factory checked in at 2022-01-10 23:54:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pytest-djangoapp (Old) and /work/SRC/openSUSE:Factory/.python-pytest-djangoapp.new.1892 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-djangoapp" Mon Jan 10 23:54:03 2022 rev:3 rq:945411 version:0.15.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pytest-djangoapp/python-pytest-djangoapp.changes 2021-05-13 22:18:56.707503802 +0200 +++ /work/SRC/openSUSE:Factory/.python-pytest-djangoapp.new.1892/python-pytest-djangoapp.changes 2022-01-10 23:54:39.516859837 +0100 @@ -1,0 +2,9 @@ +Mon Jan 10 20:59:26 UTC 2022 - Matej Cepl <mc...@suse.com> + +- Update to 0.15.2: + - Ignore temporary attributes from project settings module (see + gh#idlesign/pytest-djangoapp#21). +- Add django_4.patch making the package compatible with Django + 4.* (gh#idlesign/pytest-djangoapp#23). + +------------------------------------------------------------------- Old: ---- pytest-djangoapp-0.15.1.tar.gz New: ---- django_4.patch pytest-djangoapp-0.15.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pytest-djangoapp.spec ++++++ --- /var/tmp/diff_new_pack.tIUtMx/_old 2022-01-10 23:54:39.908860180 +0100 +++ /var/tmp/diff_new_pack.tIUtMx/_new 2022-01-10 23:54:39.912860183 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pytest-djangoapp # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,13 +18,16 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pytest-djangoapp -Version: 0.15.1 +Version: 0.15.2 Release: 0 Summary: Pytest plugin for Django pluggable application testing License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/idlesign/pytest-djangoapp Source: https://files.pythonhosted.org/packages/source/p/pytest-djangoapp/pytest-djangoapp-%{version}.tar.gz +# PATCH-FIX-UPSTREAM django_4.patch gh#idlesign/pytest-djangoapp#23 mc...@suse.com +# this patch makes things totally awesome +Patch0: django_4.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -44,8 +47,9 @@ A pytest plugin to help with Django pluggable application testing. %prep -%setup -q -n pytest-djangoapp-%{version} -# https://github.com/idlesign/pytest-djangoapp/issues/4 +%autosetup -p1 -n pytest-djangoapp-%{version} + +# gh#idlesign/pytest-djangoapp#4 mv ./pytest_djangoapp/tests/conftest.py . %build ++++++ django_4.patch ++++++ --- pytest_djangoapp/tests/testapp/urls.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- a/pytest_djangoapp/tests/testapp/urls.py +++ b/pytest_djangoapp/tests/testapp/urls.py @@ -1,4 +1,4 @@ -from django.conf.urls import url +from django.urls import re_path as url from django.http import HttpResponse from pytest_djangoapp.compat import get_urlpatterns @@ -7,13 +7,15 @@ from pytest_djangoapp.compat import get_ def raise_exception(request): raise Exception('This one should be handled by 500 technical view') +def is_ajax(req): + return req.headers.get('x-requested-with') == 'XMLHttpRequest' def index(request, some_id): if request.method == 'POST': return HttpResponse('json') - if request.is_ajax(): + if is_ajax(request): return HttpResponse('ajaxed') from django.templatetags.static import static ++++++ pytest-djangoapp-0.15.1.tar.gz -> pytest-djangoapp-0.15.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-djangoapp-0.15.1/AUTHORS new/pytest-djangoapp-0.15.2/AUTHORS --- old/pytest-djangoapp-0.15.1/AUTHORS 2020-07-30 12:07:08.000000000 +0200 +++ new/pytest-djangoapp-0.15.2/AUTHORS 2021-08-02 13:09:46.000000000 +0200 @@ -8,3 +8,4 @@ ------------ John Vandenberg <https://github.com/jayvdb> +Kamal Mustafa <https://github.com/k4ml> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-djangoapp-0.15.1/CHANGELOG new/pytest-djangoapp-0.15.2/CHANGELOG --- old/pytest-djangoapp-0.15.1/CHANGELOG 2021-04-10 11:35:34.000000000 +0200 +++ new/pytest-djangoapp-0.15.2/CHANGELOG 2021-08-04 13:21:10.000000000 +0200 @@ -2,6 +2,13 @@ ========================== +v0.15.2 [2021-08-04] +-------------------- +! Dropped QA for Python 2.7 and 3.5. +! This version is the last featuring Python 2 and 3.5 support. +* Ignore temporary attributes from project settings module (see #21). + + v0.15.1 [2021-04-10] -------------------- * Made Django 3.2 compatible. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-djangoapp-0.15.1/PKG-INFO new/pytest-djangoapp-0.15.2/PKG-INFO --- old/pytest-djangoapp-0.15.1/PKG-INFO 2021-04-10 11:35:43.000000000 +0200 +++ new/pytest-djangoapp-0.15.2/PKG-INFO 2021-08-04 13:21:18.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: pytest-djangoapp -Version: 0.15.1 +Version: 0.15.2 Summary: Nice pytest plugin to help you with Django pluggable application testing. Home-page: https://github.com/idlesign/pytest-djangoapp Author: Igor `idle sign` Starikov @@ -10,7 +10,7 @@ ================ https://github.com/idlesign/pytest-djangoapp - |release| |lic| |ci| |coverage| + |release| |lic| |coverage| .. |release| image:: https://img.shields.io/pypi/v/pytest-djangoapp.svg :target: https://pypi.python.org/pypi/pytest-djangoapp @@ -18,9 +18,6 @@ .. |lic| image:: https://img.shields.io/pypi/l/pytest-djangoapp.svg :target: https://pypi.python.org/pypi/pytest-djangoapp - .. |ci| image:: https://img.shields.io/travis/idlesign/pytest-djangoapp/master.svg - :target: https://travis-ci.org/idlesign/pytest-djangoapp - .. |coverage| image:: https://img.shields.io/coveralls/idlesign/pytest-djangoapp/master.svg :target: https://coveralls.io/r/idlesign/pytest-djangoapp @@ -137,11 +134,9 @@ Classifier: Topic :: Software Development :: Testing Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python -Classifier: Programming Language :: Python :: 2 -Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 Classifier: License :: OSI Approved :: BSD License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-djangoapp-0.15.1/README.rst new/pytest-djangoapp-0.15.2/README.rst --- old/pytest-djangoapp-0.15.1/README.rst 2021-04-10 11:33:14.000000000 +0200 +++ new/pytest-djangoapp-0.15.2/README.rst 2021-08-02 13:28:22.000000000 +0200 @@ -2,7 +2,7 @@ ================ https://github.com/idlesign/pytest-djangoapp -|release| |lic| |ci| |coverage| +|release| |lic| |coverage| .. |release| image:: https://img.shields.io/pypi/v/pytest-djangoapp.svg :target: https://pypi.python.org/pypi/pytest-djangoapp @@ -10,9 +10,6 @@ .. |lic| image:: https://img.shields.io/pypi/l/pytest-djangoapp.svg :target: https://pypi.python.org/pypi/pytest-djangoapp -.. |ci| image:: https://img.shields.io/travis/idlesign/pytest-djangoapp/master.svg - :target: https://travis-ci.org/idlesign/pytest-djangoapp - .. |coverage| image:: https://img.shields.io/coveralls/idlesign/pytest-djangoapp/master.svg :target: https://coveralls.io/r/idlesign/pytest-djangoapp diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-djangoapp-0.15.1/pytest_djangoapp/__init__.py new/pytest-djangoapp-0.15.2/pytest_djangoapp/__init__.py --- old/pytest-djangoapp-0.15.1/pytest_djangoapp/__init__.py 2021-04-10 11:35:34.000000000 +0200 +++ new/pytest-djangoapp-0.15.2/pytest_djangoapp/__init__.py 2021-08-04 13:21:10.000000000 +0200 @@ -4,7 +4,7 @@ from .toolbox import configure_djangoapp_plugin -VERSION = (0, 15, 1) +VERSION = (0, 15, 2) """Application version number tuple.""" VERSION_STR = '.'.join(map(str, VERSION)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-djangoapp-0.15.1/pytest_djangoapp/plugin.py new/pytest-djangoapp-0.15.2/pytest_djangoapp/plugin.py --- old/pytest-djangoapp-0.15.1/pytest_djangoapp/plugin.py 2020-07-30 12:07:08.000000000 +0200 +++ new/pytest-djangoapp-0.15.2/pytest_djangoapp/plugin.py 2021-08-02 13:09:46.000000000 +0200 @@ -41,3 +41,4 @@ django_settings.configure(**settings_dict) django.setup() + runner.verbosity = config.option.verbose diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-djangoapp-0.15.1/pytest_djangoapp/tests/settings_project.py new/pytest-djangoapp-0.15.2/pytest_djangoapp/tests/settings_project.py --- old/pytest-djangoapp-0.15.1/pytest_djangoapp/tests/settings_project.py 2020-01-25 09:47:25.000000000 +0100 +++ new/pytest-djangoapp-0.15.2/pytest_djangoapp/tests/settings_project.py 2021-08-02 13:46:50.000000000 +0200 @@ -1,3 +1,4 @@ +from django.utils.translation import gettext_lazy as _ # noqa SOME_ATTR = 'some value' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-djangoapp-0.15.1/pytest_djangoapp/tests/test_etc.py new/pytest-djangoapp-0.15.2/pytest_djangoapp/tests/test_etc.py --- old/pytest-djangoapp-0.15.1/pytest_djangoapp/tests/test_etc.py 2020-01-25 09:47:25.000000000 +0100 +++ new/pytest-djangoapp-0.15.2/pytest_djangoapp/tests/test_etc.py 2021-08-02 13:48:59.000000000 +0200 @@ -15,5 +15,6 @@ def test_whole_project_testing(request): configure_djangoapp_plugin('pytest_djangoapp.tests.settings_project') settings_dict = Configuration.get_combined(request.config) + assert '_' not in settings_dict assert 'SOME_ATTR' in settings_dict assert 'some_function' not in settings_dict diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-djangoapp-0.15.1/pytest_djangoapp/toolbox.py new/pytest-djangoapp-0.15.2/pytest_djangoapp/toolbox.py --- old/pytest-djangoapp-0.15.1/pytest_djangoapp/toolbox.py 2020-01-25 09:47:25.000000000 +0100 +++ new/pytest-djangoapp-0.15.2/pytest_djangoapp/toolbox.py 2021-08-02 13:49:45.000000000 +0200 @@ -88,7 +88,11 @@ settings_module = import_module(module) - settings_dict = {k: v for k, v in settings_module.__dict__.items() if k.upper() == k} + settings_dict = { + key: value + for key, value in settings_module.__dict__.items() + if key.upper() == key and not key.startswith('_') + } settings.update(settings_dict) return settings diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-djangoapp-0.15.1/pytest_djangoapp.egg-info/PKG-INFO new/pytest-djangoapp-0.15.2/pytest_djangoapp.egg-info/PKG-INFO --- old/pytest-djangoapp-0.15.1/pytest_djangoapp.egg-info/PKG-INFO 2021-04-10 11:35:42.000000000 +0200 +++ new/pytest-djangoapp-0.15.2/pytest_djangoapp.egg-info/PKG-INFO 2021-08-04 13:21:17.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: pytest-djangoapp -Version: 0.15.1 +Version: 0.15.2 Summary: Nice pytest plugin to help you with Django pluggable application testing. Home-page: https://github.com/idlesign/pytest-djangoapp Author: Igor `idle sign` Starikov @@ -10,7 +10,7 @@ ================ https://github.com/idlesign/pytest-djangoapp - |release| |lic| |ci| |coverage| + |release| |lic| |coverage| .. |release| image:: https://img.shields.io/pypi/v/pytest-djangoapp.svg :target: https://pypi.python.org/pypi/pytest-djangoapp @@ -18,9 +18,6 @@ .. |lic| image:: https://img.shields.io/pypi/l/pytest-djangoapp.svg :target: https://pypi.python.org/pypi/pytest-djangoapp - .. |ci| image:: https://img.shields.io/travis/idlesign/pytest-djangoapp/master.svg - :target: https://travis-ci.org/idlesign/pytest-djangoapp - .. |coverage| image:: https://img.shields.io/coveralls/idlesign/pytest-djangoapp/master.svg :target: https://coveralls.io/r/idlesign/pytest-djangoapp @@ -137,11 +134,9 @@ Classifier: Topic :: Software Development :: Testing Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python -Classifier: Programming Language :: Python :: 2 -Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 Classifier: License :: OSI Approved :: BSD License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-djangoapp-0.15.1/setup.py new/pytest-djangoapp-0.15.2/setup.py --- old/pytest-djangoapp-0.15.1/setup.py 2021-04-10 11:33:14.000000000 +0200 +++ new/pytest-djangoapp-0.15.2/setup.py 2021-08-02 13:28:01.000000000 +0200 @@ -67,13 +67,11 @@ 'Topic :: Software Development :: Testing', 'Operating System :: OS Independent', 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', 'License :: OSI Approved :: BSD License' ], )