File: test_scopes_backend.py

package info (click to toggle)
django-oauth-toolkit 3.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,852 kB
  • sloc: python: 12,414; makefile: 159; javascript: 9
file content (11 lines) | stat: -rw-r--r-- 342 bytes parent folder | download | duplicates (3)
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"}