Skip to content

add new user message oauth scope and throttling classes #7556

add new user message oauth scope and throttling classes

add new user message oauth scope and throttling classes #7556

GitHub Actions / api3_and_osf REPORT failed Dec 10, 2024 in 0s

0 passed, 1 failed and 0 skipped

Tests failed

❌ report.xml

1 tests were completed in 15s with 0 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
pytest 1❌ 15s

❌ pytest

❌ api_tests.base.test_views
	api_tests/base/test_views.py:20: in <module>

Annotations

Check failure on line 0 in report.xml

See this annotation in the file changed.

@github-actions github-actions / api3_and_osf REPORT

pytest ► api_tests.base.test_views

Failed test found in:
  report.xml
Error:
  api_tests/base/test_views.py:20: in <module>
Raw output
api_tests/base/test_views.py:20: in <module>
    from api.users.views import ClaimUser
api/users/views.py:964: in <module>
    class UserMessageView(JSONAPIBaseView, generics.CreateAPIView):
api/users/views.py:975: in UserMessageView
    required_write_scopes = [CoreScopes.USERS_MESSAGE_WRITE]
E   AttributeError: type object 'CoreScopes' has no attribute 'USERS_MESSAGE_WRITE'. Did you mean: 'USERS_MESSAGE_WRITE_EMAIL'?