Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions auth0/v3/management/auth0.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from .actions import Actions
from .blacklists import Blacklists
from .client_grants import ClientGrants
from .clients import Clients
Expand Down Expand Up @@ -41,6 +42,7 @@ class Auth0(object):
"""

def __init__(self, domain, token, rest_options=None):
self.actions = Actions(domain=domain, token=token, rest_options=rest_options)
self.blacklists = Blacklists(domain=domain, token=token, rest_options=rest_options)
self.client_grants = ClientGrants(domain=domain, token=token, rest_options=rest_options)
self.clients = Clients(domain=domain, token=token, rest_options=rest_options)
Expand Down
4 changes: 4 additions & 0 deletions auth0/v3/test/management/test_auth0.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import unittest

from ...management.auth0 import Auth0
from ...management.actions import Actions
from ...management.blacklists import Blacklists
from ...management.client_grants import ClientGrants
from ...management.clients import Clients
Expand Down Expand Up @@ -35,6 +36,9 @@ def setUp(self):
self.token = "a-token"
self.a0 = Auth0(self.domain, self.token)

def test_blacklists(self):
self.assertIsInstance(self.a0.actions, Actions)

def test_blacklists(self):
self.assertIsInstance(self.a0.blacklists, Blacklists)

Expand Down