summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-07 10:10:56 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-07 10:10:56 +0000
commitff2de7402b68c0ed71cf9f12a2ef0e429a882068 (patch)
treefaf08322e453626ff154e0d87417519812065faf
parent69f15f4b816471f03468452b63deb0d10c6c340b (diff)
automatic import of python-pytest-asyncio
-rw-r--r--.gitignore1
-rw-r--r--python-pytest-asyncio.spec17
-rw-r--r--sources2
3 files changed, 12 insertions, 8 deletions
diff --git a/.gitignore b/.gitignore
index d5982a2..b718944 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/pytest-asyncio-0.20.3.tar.gz
+/pytest-asyncio-0.21.0.tar.gz
diff --git a/python-pytest-asyncio.spec b/python-pytest-asyncio.spec
index 98b3cd5..a86fb11 100644
--- a/python-pytest-asyncio.spec
+++ b/python-pytest-asyncio.spec
@@ -1,11 +1,11 @@
%global _empty_manifest_terminate_build 0
Name: python-pytest-asyncio
-Version: 0.20.3
+Version: 0.21.0
Release: 1
Summary: Pytest support for asyncio
License: Apache 2.0
URL: https://github.com/pytest-dev/pytest-asyncio
-Source0: https://mirrors.nju.edu.cn/pypi/web/packages/6e/06/38b0ca5d53582bb49697626975b5540435ea064762d852b5c66646c729e9/pytest-asyncio-0.20.3.tar.gz
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/85/c7/9db0c6215f12f26b590c24acc96d048e03989315f198454540dff95109cd/pytest-asyncio-0.21.0.tar.gz
BuildArch: noarch
Requires: python3-pytest
@@ -19,12 +19,13 @@ Requires: python3-mypy
Requires: python3-pytest-trio
%description
-pytest-asyncio is a `pytest <https://docs.pytest.org/en/latest/contents.html>`_ plugin. It facilitates testing of code that uses the `asyncio <https://docs.python.org/3/library/asyncio.html>`_ library.
+`pytest-asyncio <https://pytest-asyncio.readthedocs.io/en/latest/>`_ is a `pytest <https://docs.pytest.org/en/latest/contents.html>`_ plugin. It facilitates testing of code that uses the `asyncio <https://docs.python.org/3/library/asyncio.html>`_ library.
Specifically, pytest-asyncio provides support for coroutines as test functions. This allows users to *await* code inside their tests. For example, the following code is executed as a test item by pytest:
@pytest.mark.asyncio
async def test_some_asyncio_code():
res = await library.do_something()
assert b"expected result" == res
+More details can be found in the `documentation <https://pytest-asyncio.readthedocs.io/en/latest/>`_.
Note that test classes subclassing the standard `unittest <https://docs.python.org/3/library/unittest.html>`__ library are not supported. Users
are advised to use `unittest.IsolatedAsyncioTestCase <https://docs.python.org/3/library/unittest.html#unittest.IsolatedAsyncioTestCase>`__
or an async framework such as `asynctest <https://asynctest.readthedocs.io/en/latest>`__.
@@ -37,12 +38,13 @@ BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-pytest-asyncio
-pytest-asyncio is a `pytest <https://docs.pytest.org/en/latest/contents.html>`_ plugin. It facilitates testing of code that uses the `asyncio <https://docs.python.org/3/library/asyncio.html>`_ library.
+`pytest-asyncio <https://pytest-asyncio.readthedocs.io/en/latest/>`_ is a `pytest <https://docs.pytest.org/en/latest/contents.html>`_ plugin. It facilitates testing of code that uses the `asyncio <https://docs.python.org/3/library/asyncio.html>`_ library.
Specifically, pytest-asyncio provides support for coroutines as test functions. This allows users to *await* code inside their tests. For example, the following code is executed as a test item by pytest:
@pytest.mark.asyncio
async def test_some_asyncio_code():
res = await library.do_something()
assert b"expected result" == res
+More details can be found in the `documentation <https://pytest-asyncio.readthedocs.io/en/latest/>`_.
Note that test classes subclassing the standard `unittest <https://docs.python.org/3/library/unittest.html>`__ library are not supported. Users
are advised to use `unittest.IsolatedAsyncioTestCase <https://docs.python.org/3/library/unittest.html#unittest.IsolatedAsyncioTestCase>`__
or an async framework such as `asynctest <https://asynctest.readthedocs.io/en/latest>`__.
@@ -52,19 +54,20 @@ pytest-asyncio is available under the `Apache License 2.0 <https://github.com/py
Summary: Development documents and examples for pytest-asyncio
Provides: python3-pytest-asyncio-doc
%description help
-pytest-asyncio is a `pytest <https://docs.pytest.org/en/latest/contents.html>`_ plugin. It facilitates testing of code that uses the `asyncio <https://docs.python.org/3/library/asyncio.html>`_ library.
+`pytest-asyncio <https://pytest-asyncio.readthedocs.io/en/latest/>`_ is a `pytest <https://docs.pytest.org/en/latest/contents.html>`_ plugin. It facilitates testing of code that uses the `asyncio <https://docs.python.org/3/library/asyncio.html>`_ library.
Specifically, pytest-asyncio provides support for coroutines as test functions. This allows users to *await* code inside their tests. For example, the following code is executed as a test item by pytest:
@pytest.mark.asyncio
async def test_some_asyncio_code():
res = await library.do_something()
assert b"expected result" == res
+More details can be found in the `documentation <https://pytest-asyncio.readthedocs.io/en/latest/>`_.
Note that test classes subclassing the standard `unittest <https://docs.python.org/3/library/unittest.html>`__ library are not supported. Users
are advised to use `unittest.IsolatedAsyncioTestCase <https://docs.python.org/3/library/unittest.html#unittest.IsolatedAsyncioTestCase>`__
or an async framework such as `asynctest <https://asynctest.readthedocs.io/en/latest>`__.
pytest-asyncio is available under the `Apache License 2.0 <https://github.com/pytest-dev/pytest-asyncio/blob/master/LICENSE>`_.
%prep
-%autosetup -n pytest-asyncio-0.20.3
+%autosetup -n pytest-asyncio-0.21.0
%build
%py3_build
@@ -104,5 +107,5 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/*
%changelog
-* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.20.3-1
+* Fri Apr 07 2023 Python_Bot <Python_Bot@openeuler.org> - 0.21.0-1
- Package Spec generated
diff --git a/sources b/sources
index 53bc6f1..007f507 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-dce438c7b0081d7f580b5a79d7105570 pytest-asyncio-0.20.3.tar.gz
+805da62a533c75a9bccadee485f98c27 pytest-asyncio-0.21.0.tar.gz