From 17266d35ccde66ac789df1eec1ac043353d5934302eb225a19455f187980f3f4 Mon Sep 17 00:00:00 2001 From: Luigi Baldoni Date: Sat, 28 Nov 2020 11:33:55 +0000 Subject: [PATCH] Accepting request 851467 from home:jayvdb:branches:devel:languages:python - Activate test suite OBS-URL: https://build.opensuse.org/request/show/851467 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wsproto?expand=0&rev=16 --- python-wsproto.changes | 5 +++++ python-wsproto.spec | 15 ++++++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/python-wsproto.changes b/python-wsproto.changes index 22409d1..8c126ae 100644 --- a/python-wsproto.changes +++ b/python-wsproto.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Nov 28 09:27:15 UTC 2020 - John Vandenberg + +- Activate test suite + ------------------------------------------------------------------- Mon Nov 23 10:21:57 UTC 2020 - aloisio@gmx.com diff --git a/python-wsproto.spec b/python-wsproto.spec index 35cdb4a..dc0de21 100644 --- a/python-wsproto.spec +++ b/python-wsproto.spec @@ -27,16 +27,20 @@ Group: Development/Languages/Python URL: https://pypi.python.org/pypi/wsproto Source: https://files.pythonhosted.org/packages/source/w/wsproto/wsproto-%{version}.tar.gz BuildRequires: %{python_module setuptools} -%if 0%{?suse_version} <= 1520 -BuildRequires: %{python_module dataclasses} -%endif BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-h11 >= 0.8.1 +BuildArch: noarch +%if 0%{?suse_version} <= 1520 +BuildRequires: %{python_module dataclasses} +%endif +# SECTION test requirements +BuildRequires: %{python_module h11 >= 0.8.1} +BuildRequires: %{python_module pytest} +# /SECTION %if 0%{?suse_version} <= 1520 Requires: python-dataclasses %endif -BuildArch: noarch %python_subpackages %description @@ -63,7 +67,8 @@ RFC6455 and Compression Extensions for WebSocket via RFC7692 %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -#it seems almost impossible to launch the tests, it has to be done via tox +%check +%pytest %files %{python_files} %doc README.rst