Skip to content

Use pytest style assertions in the test suite#746

Merged
azmeuk merged 1 commit intoauthlib:mainfrom
azmeuk:pytest
May 15, 2025
Merged

Use pytest style assertions in the test suite#746
azmeuk merged 1 commit intoauthlib:mainfrom
azmeuk:pytest

Conversation

@azmeuk
Copy link
Member

@azmeuk azmeuk commented Apr 14, 2025

This PR adopts the pytest assert x == y style instead of unittest self.assertEqual(x, y).

This makes the assertions more legible, without concessions on the error messages.

@azmeuk azmeuk force-pushed the pytest branch 2 times, most recently from 7c76758 to 43c9973 Compare April 21, 2025 07:33
@azmeuk azmeuk force-pushed the pytest branch 2 times, most recently from 46bafa8 to 3c1dbea Compare April 28, 2025 08:30
@azmeuk azmeuk merged commit 4d1f3d9 into authlib:main May 15, 2025
7 checks passed
@azmeuk azmeuk deleted the pytest branch May 15, 2025 18:28
@azmeuk azmeuk mentioned this pull request Sep 1, 2025
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants