diff --git a/auth0/v3/management/auth0.py b/auth0/v3/management/auth0.py index 819e3926..58cb9a55 100644 --- a/auth0/v3/management/auth0.py +++ b/auth0/v3/management/auth0.py @@ -1,3 +1,4 @@ +from .actions import Actions from .blacklists import Blacklists from .client_grants import ClientGrants from .clients import Clients @@ -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) diff --git a/auth0/v3/test/management/test_auth0.py b/auth0/v3/test/management/test_auth0.py index d11529a5..78fbc737 100644 --- a/auth0/v3/test/management/test_auth0.py +++ b/auth0/v3/test/management/test_auth0.py @@ -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 @@ -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)