tomplus / kubernetes_asyncio

Python asynchronous client library for Kubernetes http://kubernetes.io/
Apache License 2.0
364 stars 71 forks source link

fix unittests to work with aiohttp 3.10+ #326

Closed tomplus closed 3 months ago

tomplus commented 3 months ago

This PR adjusts unitests to work with aiohttp 3.10+ where http sessions have to be created within an async function. Ref: https://github.com/aio-libs/aiohttp/issues/8555

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 3.93701% with 122 lines in your changes missing coverage. Please review.

Project coverage is 28.11%. Comparing base (f53d443) to head (154c772).

Files Patch % Lines
...tes_asyncio/test/test_admissionregistration_api.py 0.00% 2 Missing :warning:
..._asyncio/test/test_admissionregistration_v1_api.py 0.00% 2 Missing :warning:
...io/test/test_admissionregistration_v1alpha1_api.py 0.00% 2 Missing :warning:
...cio/test/test_admissionregistration_v1beta1_api.py 0.00% 2 Missing :warning:
kubernetes_asyncio/test/test_apiextensions_api.py 0.00% 2 Missing :warning:
...bernetes_asyncio/test/test_apiextensions_v1_api.py 0.00% 2 Missing :warning:
...ubernetes_asyncio/test/test_apiregistration_api.py 0.00% 2 Missing :warning:
...rnetes_asyncio/test/test_apiregistration_v1_api.py 0.00% 2 Missing :warning:
kubernetes_asyncio/test/test_apis_api.py 0.00% 2 Missing :warning:
kubernetes_asyncio/test/test_apps_api.py 0.00% 2 Missing :warning:
... and 51 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #326 +/- ## ======================================= Coverage 28.11% 28.11% ======================================= Files 779 779 Lines 92138 92138 ======================================= Hits 25904 25904 Misses 66234 66234 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.