harvard-lil / perma

Indelible links
408 stars 72 forks source link

Rek pytest views auth #3471

Closed kilbergr closed 5 months ago

kilbergr commented 5 months ago

This PR translates test_views_auth from unittest to pytest style. I copied and modified some helpers from perma/tests/utils, namely submit_form: https://github.com/harvard-lil/perma/blob/develop/perma_web/perma/tests/utils.py#L84, randomize_capitalization, and log_in_user: https://github.com/harvard-lil/perma/blob/develop/perma_web/perma/tests/utils.py#L24.

codecov[bot] commented 5 months ago

Codecov Report

Attention: 11 lines in your changes are missing coverage. Please review.

Comparison is base (6bbf84c) 71.19% compared to head (510034b) 71.18%.

Files Patch % Lines
perma_web/conftest.py 67.64% 11 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #3471 +/- ## =========================================== - Coverage 71.19% 71.18% -0.01% =========================================== Files 48 48 Lines 6453 6486 +33 =========================================== + Hits 4594 4617 +23 - Misses 1859 1869 +10 ```

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