17
0

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

- Exclude django tests for non-Factory

OBS-URL: https://build.opensuse.org/request/show/1203797
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-openapi-core?expand=0&rev=43
This commit is contained in:
2024-09-27 07:39:11 +00:00
committed by Git OBS Bridge
parent 228ddf5264
commit 3590aca955
2 changed files with 12 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Sep 26 10:41:14 UTC 2024 - Markéta Machová <mmachova@suse.com>
- Exclude django tests for non-Factory
-------------------------------------------------------------------
Tue Feb 6 20:36:49 UTC 2024 - Ben Greiner <code@bnavigator.de>

View File

@@ -31,7 +31,6 @@ BuildRequires: %{python_module poetry-core}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION test
BuildRequires: %{python_module Django >= 3.0}
BuildRequires: %{python_module Flask}
BuildRequires: %{python_module WebOb}
BuildRequires: %{python_module Werkzeug}
@@ -48,6 +47,9 @@ BuildRequires: %{python_module openapi-spec-validator >= 0.7.1 with %python-ope
BuildRequires: %{python_module parse}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module responses}
%if 0%{suse_version} >= 1699
BuildRequires: %{python_module Django}
%endif
# /SECTION
Requires: python-Werkzeug
Requires: python-asgiref >= 3.6.0
@@ -81,6 +83,10 @@ done
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# python-Django is not present in SLE 16
%if 0%{suse_version} < 1699
rm tests/unit/contrib/django/test_django.py
%endif
%pytest tests/unit -k 'not (test_read_only_properties_invalid or test_write_only_properties_invalid)'
%files %{python_files}