Commit 84e7e47
committed
Fix: Convert sync tests using async fixtures to async tests
Two test methods in test_auth.py were using the async oauth_provider fixture
but were not marked as async tests:
- test_scope_priority_client_metadata_first
- test_scope_priority_no_client_metadata_scope
This caused AttributeError: 'coroutine' object has no attribute 'client_metadata'
when running tests locally with pytest-anyio.
Added @pytest.mark.anyio decorator and converted both methods to async,
following the pattern established in commit 9dad266.1 parent 05b7156 commit 84e7e47
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
756 | 756 | | |
757 | 757 | | |
758 | 758 | | |
759 | | - | |
| 759 | + | |
| 760 | + | |
760 | 761 | | |
761 | 762 | | |
762 | 763 | | |
| |||
785 | 786 | | |
786 | 787 | | |
787 | 788 | | |
788 | | - | |
| 789 | + | |
| 790 | + | |
789 | 791 | | |
790 | 792 | | |
791 | 793 | | |
| |||
0 commit comments