maximdanilchenko / aiohttp-apispec

Build and document REST APIs with aiohttp and apispec
https://aiohttp-apispec.rtfd.io
MIT License
220 stars 58 forks source link

Fix failed tests in CI #119

Closed maximdanilchenko closed 2 years ago

maximdanilchenko commented 2 years ago

https://travis-ci.org/github/maximdanilchenko/aiohttp-apispec/jobs/747778061

    async def test_register_route_for_relative_url():
        app = web.Application()
        routes_count = len(app.router.routes())
        setup_aiohttp_apispec(app=app, url="api/swagger")
        routes_count_after_setup_apispec = len(app.router.routes())
>       assert routes_count == routes_count_after_setup_apispec
E       assert 0 == 1
E         +0
E         -1
tests/test_documentation.py:174: AssertionError
 test_documentation.py::test_register_route_for_relative_url ⨯    21% ██▏       
kiforchuk commented 2 years ago

Already fixed in https://github.com/maximdanilchenko/aiohttp-apispec/commit/0ff8d1b85b5570f7ce67d95fa60c5a02de4a4a58#diff-94f2417cbb265c9c55b6280a1eba86d9befbdd2a445f5c91ab0f92fa1d6b97a9R187-R195