PnX-SI / UsersHub-authentification-module

Module Flask d'authentification de UsersHub
GNU General Public License v3.0
5 stars 12 forks source link

tests: add logged_user context manager #84

Closed bouttier closed 6 months ago

bouttier commented 6 months ago

Usage:

with logged_user(client, user):
    response = client.get(url)
codecov[bot] commented 6 months ago

Codecov Report

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

Comparison is base (83f4710) 51.72% compared to head (2adb676) 51.47%.

:exclamation: Current head 2adb676 differs from pull request most recent head 63f5b86. Consider uploading reports for the commit 63f5b86 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #84 +/- ## =========================================== - Coverage 51.72% 51.47% -0.26% =========================================== Files 14 14 Lines 725 713 -12 =========================================== - Hits 375 367 -8 + Misses 350 346 -4 ``` | [Flag](https://app.codecov.io/gh/PnX-SI/UsersHub-authentification-module/pull/84/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PnX-SI) | Coverage Δ | | |---|---|---| | [pytest](https://app.codecov.io/gh/PnX-SI/UsersHub-authentification-module/pull/84/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PnX-SI) | `51.47% <ø> (-0.26%)` | :arrow_down: | 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=PnX-SI#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.