feat: ж/д слой + cant_swim в скоринг + профили вне модели
Определение специфических рекомендаций (матрица профилей §8):
1. Ж/д слой (закрыт мёртвый railway ×2.5 у РАС):
- /api/v1/water/{case_id} отдаёт railway=rail как LineString
(без service/industrial/military веток), кэш общий v2;
- railway_warning «перекрыть/проверить немедленно» по профилям;
- SearchMap: Polyline слой ж/д (тёмно-красный), счётчики 💧/🚂.
2. cant_swim → профиль не_умеет_плавать (water ×3.0, без изменения
радиуса, critical_warning «обследовать водоёмы НЕМЕДЛЕННО»):
- раньше чекбокс влиял только на текст, в скоринге был пробел;
- derive в analyze._derive_profiles — работает и для closed_cases.
3. unmodeled_profiles: ДЦП/слабое зрение/слух — честная пометка
«вне поведенческой модели» с пояснением (vector_tasks B12:
профили без аналога не выдавать за учтённые); блок на фронте
в карточке здоровья.
Площадь воды: сферический эксцесс, проверен на квадрате 53° (744017 м²
vs 743272 точного). Тесты: 202 passed (новый test_cant_swim_profile).
This commit is contained in:
@@ -0,0 +1,92 @@
|
||||
Metadata-Version: 2.4
|
||||
Name: pytest-asyncio
|
||||
Version: 1.4.0
|
||||
Summary: Pytest support for asyncio
|
||||
Author-email: Tin Tvrtković <tinchester@gmail.com>
|
||||
Maintainer-email: Michael Seifert <m.seifert@digitalernachschub.de>
|
||||
License-Expression: Apache-2.0
|
||||
Project-URL: Bug Tracker, https://github.com/pytest-dev/pytest-asyncio/issues
|
||||
Project-URL: Changelog, https://pytest-asyncio.readthedocs.io/en/stable/reference/changelog.html
|
||||
Project-URL: Documentation, https://pytest-asyncio.readthedocs.io
|
||||
Project-URL: Homepage, https://github.com/pytest-dev/pytest-asyncio
|
||||
Project-URL: Source Code, https://github.com/pytest-dev/pytest-asyncio
|
||||
Classifier: Development Status :: 5 - Production/Stable
|
||||
Classifier: Framework :: AsyncIO
|
||||
Classifier: Framework :: Pytest
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: Programming Language :: Python :: 3 :: Only
|
||||
Classifier: Programming Language :: Python :: 3.10
|
||||
Classifier: Programming Language :: Python :: 3.11
|
||||
Classifier: Programming Language :: Python :: 3.12
|
||||
Classifier: Programming Language :: Python :: 3.13
|
||||
Classifier: Programming Language :: Python :: 3.14
|
||||
Classifier: Topic :: Software Development :: Testing
|
||||
Classifier: Typing :: Typed
|
||||
Requires-Python: >=3.10
|
||||
Description-Content-Type: text/x-rst
|
||||
License-File: LICENSE
|
||||
Requires-Dist: backports-asyncio-runner<2,>=1.1; python_version < "3.11"
|
||||
Requires-Dist: pytest<10,>=8.4
|
||||
Requires-Dist: typing-extensions>=4.12; python_version < "3.13"
|
||||
Provides-Extra: docs
|
||||
Requires-Dist: sphinx>=5.3; extra == "docs"
|
||||
Requires-Dist: sphinx-rtd-theme>=1; extra == "docs"
|
||||
Requires-Dist: sphinx-tabs>=3.5; extra == "docs"
|
||||
Provides-Extra: testing
|
||||
Requires-Dist: coverage>=6.2; extra == "testing"
|
||||
Requires-Dist: hypothesis>=5.7.1; extra == "testing"
|
||||
Dynamic: license-file
|
||||
|
||||
pytest-asyncio
|
||||
==============
|
||||
|
||||
.. image:: https://img.shields.io/pypi/v/pytest-asyncio.svg
|
||||
:target: https://pypi.python.org/pypi/pytest-asyncio
|
||||
.. image:: https://github.com/pytest-dev/pytest-asyncio/workflows/CI/badge.svg
|
||||
:target: https://github.com/pytest-dev/pytest-asyncio/actions?workflow=CI
|
||||
.. image:: https://codecov.io/gh/pytest-dev/pytest-asyncio/branch/main/graph/badge.svg
|
||||
:target: https://codecov.io/gh/pytest-dev/pytest-asyncio
|
||||
.. image:: https://img.shields.io/pypi/pyversions/pytest-asyncio.svg
|
||||
:target: https://github.com/pytest-dev/pytest-asyncio
|
||||
:alt: Supported Python versions
|
||||
.. image:: https://img.shields.io/badge/Matrix-%23pytest--asyncio-brightgreen
|
||||
:alt: Matrix chat room: #pytest-asyncio
|
||||
:target: https://matrix.to/#/#pytest-asyncio:matrix.org
|
||||
|
||||
`pytest-asyncio <https://pytest-asyncio.readthedocs.io/en/stable/>`_ 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:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
@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/stable/>`_.
|
||||
|
||||
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/main/LICENSE>`_.
|
||||
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
To install pytest-asyncio, simply:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ pip install pytest-asyncio
|
||||
|
||||
This is enough for pytest to pick up pytest-asyncio.
|
||||
|
||||
|
||||
Contributing
|
||||
------------
|
||||
Contributions are very welcome. Tests can be run with ``tox``, please ensure
|
||||
the coverage at least stays the same before you submit a pull request.
|
||||
Reference in New Issue
Block a user