15
0

Accepting request 1204083 from home:mcalabkova:branches:devel:languages:python

- reformat the django test constraints

OBS-URL: https://build.opensuse.org/request/show/1204083
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-openapi-core?expand=0&rev=45
This commit is contained in:
2024-09-27 09:11:27 +00:00
committed by Git OBS Bridge
parent bbb7b00729
commit 77d823c6fa
2 changed files with 12 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Sep 27 08:15:11 UTC 2024 - Markéta Machová <mmachova@suse.com>
- reformat the django test constraints
-------------------------------------------------------------------
Fri Sep 27 07:44:25 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -16,6 +16,11 @@
#
# python-Django is not present in SLE 16
%if 0%{suse_version} >= 1699
%bcond_without django
%endif
Name: python-openapi-core
Version: 0.19.4
Release: 0
@@ -46,7 +51,7 @@ BuildRequires: %{python_module parse}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module responses}
%if 0%{suse_version} > 1600
%if %{with django}
BuildRequires: %{python_module Django}
%endif
# /SECTION
@@ -82,8 +87,7 @@ done
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# python-Django is not present in SLE 16
%if 0%{suse_version} < 1699
%if !%{with django}
rm -v tests/unit/contrib/django/test_django.py
%endif
%pytest tests/unit -k 'not (test_read_only_properties_invalid or test_write_only_properties_invalid)'