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:
@@ -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>
|
||||
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user