File: test_scopes_backend.py

package info (click to toggle)
django-oauth-toolkit 3.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,156 kB
  • sloc: python: 11,100; makefile: 159; javascript: 9; sh: 6
file content (11 lines) | stat: -rw-r--r-- 342 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
from oauth2_provider.scopes import SettingsScopes


def test_settings_scopes_get_available_scopes():
    scopes = SettingsScopes()
    assert set(scopes.get_available_scopes()) == {"read", "write"}


def test_settings_scopes_get_default_scopes():
    scopes = SettingsScopes()
    assert set(scopes.get_default_scopes()) == {"read", "write"}