ansible-collections / vmware.vmware

Ansible VMWare Collection
GNU General Public License v3.0
7 stars 10 forks source link

test functools cache #79

Closed mikemorency closed 2 weeks ago

mikemorency commented 2 weeks ago

SUMMARY

Testing functools caches to see if tests are executed faster. If it works it should cache the result of the certain functions, like the ones we use to authenticate to vcenter Based on https://docs.python.org/3/library/functools.html#functools.lru_cache

Related to https://forum.ansible.com/t/10551

codecov[bot] commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 27.34%. Comparing base (013afa4) to head (26c8bf2). Report is 24 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #79 +/- ## ========================================== + Coverage 26.09% 27.34% +1.24% ========================================== Files 19 22 +3 Lines 1667 1869 +202 Branches 331 358 +27 ========================================== + Hits 435 511 +76 - Misses 1232 1358 +126 ``` | [Flag](https://app.codecov.io/gh/ansible-collections/vmware.vmware/pull/79/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ansible-collections) | Coverage Δ | | |---|---|---| | [sanity](https://app.codecov.io/gh/ansible-collections/vmware.vmware/pull/79/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ansible-collections) | `27.34% <100.00%> (+1.24%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ansible-collections#carryforward-flags-in-the-pull-request-comment) to find out more.

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