- Fix tests problem related to jinja2 version

# gh#django-compressor/django-compressor#1139
  # gh#django-compressor/django-compressor@bcdd21956a84

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-compressor?expand=0&rev=18
This commit is contained in:
Daniel Garcia 2022-11-24 18:27:13 +00:00 committed by Git OBS Bridge
parent 6724731a17
commit 562690d388
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Nov 24 18:26:17 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
- Fix tests problem related to jinja2 version
# gh#django-compressor/django-compressor#1139
# gh#django-compressor/django-compressor@bcdd21956a84
-------------------------------------------------------------------
Thu Aug 4 17:45:11 UTC 2022 - Ben Greiner <code@bnavigator.de>

View File

@ -16,7 +16,6 @@
#
%{?!python_module:%define python_module() python3-%{**}}
%define mod_name django_compressor
%define skip_python2 1
Name: python-django-compressor
@ -66,6 +65,10 @@ template tag.
%prep
%setup -q -n %{mod_name}-%{version}
sed -i '1{/env python/d}' compressor/tests/precompiler.py
# Fix broken tests related to jijna2
# gh#django-compressor/django-compressor#1139
# gh#django-compressor/django-compressor@bcdd21956a84
sed -i '/jinja2.ext.with_/d' compressor/tests/test_offline.py
%build
%python_build