repo_id stringclasses 400
values | commit_sha stringclasses 400
values | commit_index int32 0 951 | in_repo_split stringclasses 1
value | cross_repo_split stringclasses 1
value | test_file stringlengths 7 121 | test_function stringlengths 1 108 | assertion_type stringclasses 32
values | difficulty stringclasses 8
values | context_lines int32 3 600 | prefix large_stringlengths 44 113k | target large_stringlengths 1 498 | anchor_sha stringclasses 400
values | anchor_index int32 0 951 | qna_source stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_branding.py | test_init_with_optionals | self.assertEqual | collection | 12 | import unittest
from unittest import mock
from ...management.branding import Branding
class TestBranding(unittest.TestCase):
def test_init_with_optionals(self):
branding = Branding(
domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)
)
self.assertEqual(branding... | (10, 2)) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_client_credentials.py | test_init_with_optionals | self.assertEqual | collection | 12 | import unittest
from unittest import mock
from ...management.client_credentials import ClientCredentials
class TestClientCredentials(unittest.TestCase):
def test_init_with_optionals(self):
t = ClientCredentials(
domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)
)
... | (10, 2)) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_client_grants.py | test_init_with_optionals | self.assertEqual | collection | 12 | import unittest
from unittest import mock
from ...management.client_grants import ClientGrants
class TestClientGrants(unittest.TestCase):
def test_init_with_optionals(self):
t = ClientGrants(
domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)
)
self.assertEqua... | (10, 2)) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_clients.py | test_init_with_optionals | self.assertEqual | collection | 10 | import unittest
from unittest import mock
from ...management.clients import Clients
class TestClients(unittest.TestCase):
def test_init_with_optionals(self):
t = Clients(domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2))
self.assertEqual(t.client.options.timeout, | (10, 2)) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_connections.py | test_init_with_optionals | self.assertEqual | collection | 12 | import unittest
from unittest import mock
from ...management.connections import Connections
class TestConnection(unittest.TestCase):
def test_init_with_optionals(self):
t = Connections(
domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)
)
self.assertEqual(t.cl... | (10, 2)) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_custom_domains.py | test_init_with_optionals | self.assertEqual | collection | 12 | import unittest
from unittest import mock
from ...management.custom_domains import CustomDomains
class TestCustomDomains(unittest.TestCase):
def test_init_with_optionals(self):
t = CustomDomains(
domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)
)
self.assert... | (10, 2)) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_device_credentials.py | test_init_with_optionals | self.assertEqual | collection | 12 | import unittest
from unittest import mock
from ...management.device_credentials import DeviceCredentials
class TestDeviceCredentials(unittest.TestCase):
def test_init_with_optionals(self):
t = DeviceCredentials(
domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)
)
... | (10, 2)) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_email_endpoints.py | test_init_with_optionals | self.assertEqual | collection | 12 | import unittest
from unittest import mock
from ...management.email_templates import EmailTemplates
class TestClients(unittest.TestCase):
def test_init_with_optionals(self):
t = EmailTemplates(
domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)
)
self.assertEqu... | (10, 2)) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_emails.py | test_init_with_optionals | self.assertEqual | collection | 10 | import unittest
from unittest import mock
from ...management.emails import Emails
class TestEmails(unittest.TestCase):
def test_init_with_optionals(self):
t = Emails(domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2))
self.assertEqual(t.client.options.timeout, | (10, 2)) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_grants.py | test_init_with_optionals | self.assertEqual | collection | 10 | import unittest
from unittest import mock
from ...management.grants import Grants
class TestGrants(unittest.TestCase):
def test_init_with_optionals(self):
t = Grants(domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2))
self.assertEqual(t.client.options.timeout, | (10, 2)) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_guardian.py | test_init_with_optionals | self.assertEqual | collection | 12 | import unittest
from unittest import mock
from ...management.guardian import Guardian
class TestGuardian(unittest.TestCase):
def test_init_with_optionals(self):
t = Guardian(
domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)
)
self.assertEqual(t.client.option... | (10, 2)) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_hooks.py | test_init_with_optionals | self.assertEqual | collection | 10 | import unittest
from unittest import mock
from ...management.hooks import Hooks
class TestRules(unittest.TestCase):
def test_init_with_optionals(self):
t = Hooks(domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2))
self.assertEqual(t.client.options.timeout, | (10, 2)) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_jobs.py | test_init_with_optionals | self.assertEqual | collection | 10 | import unittest
from unittest import mock
from ...management.jobs import Jobs
class TestJobs(unittest.TestCase):
def test_init_with_optionals(self):
t = Jobs(domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2))
self.assertEqual(t.client.options.timeout, | (10, 2)) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_log_streams.py | test_init_with_optionals | self.assertEqual | collection | 12 | import unittest
from unittest import mock
from ...management.log_streams import LogStreams
class TestLogStreams(unittest.TestCase):
def test_init_with_optionals(self):
t = LogStreams(
domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)
)
self.assertEqual(t.clie... | (10, 2)) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_logs.py | test_init_with_optionals | self.assertEqual | collection | 10 | import unittest
from unittest import mock
from ...management.logs import Logs
class TestLogs(unittest.TestCase):
def test_init_with_optionals(self):
t = Logs(domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2))
self.assertEqual(t.client.options.timeout, | (10, 2)) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_organizations.py | test_init_with_optionals | self.assertEqual | collection | 12 | import unittest
from unittest import mock
from ...management.organizations import Organizations
class TestOrganizations(unittest.TestCase):
def test_init_with_optionals(self):
t = Organizations(
domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)
)
self.assertE... | (10, 2)) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_prompts.py | test_init_with_optionals | self.assertEqual | collection | 10 | import unittest
from unittest import mock
from ...management.prompts import Prompts
class TestPrompts(unittest.TestCase):
def test_init_with_optionals(self):
t = Prompts(domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2))
self.assertEqual(t.client.options.timeout, | (10, 2)) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_resource_servers.py | test_init_with_optionals | self.assertEqual | collection | 12 | import unittest
from unittest import mock
from ...management.resource_servers import ResourceServers
class TestResourceServers(unittest.TestCase):
def test_init_with_optionals(self):
t = ResourceServers(
domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)
)
sel... | (10, 2)) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_roles.py | test_init_with_optionals | self.assertEqual | collection | 10 | import unittest
from unittest import mock
from ...management.roles import Roles
class TestRoles(unittest.TestCase):
def test_init_with_optionals(self):
t = Roles(domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2))
self.assertEqual(t.client.options.timeout, | (10, 2)) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_rules.py | test_init_with_optionals | self.assertEqual | collection | 10 | import unittest
from unittest import mock
from ...management.rules import Rules
class TestRules(unittest.TestCase):
def test_init_with_optionals(self):
t = Rules(domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2))
self.assertEqual(t.client.options.timeout, | (10, 2)) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_rules_configs.py | test_init_with_optionals | self.assertEqual | collection | 12 | import unittest
from unittest import mock
from ...management.rules_configs import RulesConfigs
class TestRulesConfigs(unittest.TestCase):
def test_init_with_optionals(self):
t = RulesConfigs(
domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)
)
self.assertEqua... | (10, 2)) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_stats.py | test_init_with_optionals | self.assertEqual | collection | 10 | import unittest
from unittest import mock
from ...management.stats import Stats
class TestStats(unittest.TestCase):
def test_init_with_optionals(self):
t = Stats(domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2))
self.assertEqual(t.client.options.timeout, | (10, 2)) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_tenants.py | test_init_with_optionals | self.assertEqual | collection | 10 | import unittest
from unittest import mock
from ...management.tenants import Tenants
class TestTenants(unittest.TestCase):
def test_init_with_optionals(self):
t = Tenants(domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2))
self.assertEqual(t.client.options.timeout, | (10, 2)) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_tickets.py | test_init_with_optionals | self.assertEqual | collection | 10 | import unittest
from unittest import mock
from ...management.tickets import Tickets
class TestTickets(unittest.TestCase):
def test_init_with_optionals(self):
t = Tickets(domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2))
self.assertEqual(t.client.options.timeout, | (10, 2)) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_user_blocks.py | test_init_with_optionals | self.assertEqual | collection | 12 | import unittest
from unittest import mock
from ...management.user_blocks import UserBlocks
class TestUserBlocks(unittest.TestCase):
def test_init_with_optionals(self):
t = UserBlocks(
domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)
)
self.assertEqual(t.clie... | (10, 2)) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_users.py | test_init_with_optionals | self.assertEqual | collection | 10 | import unittest
from unittest import mock
from ...management.users import Users
class TestUsers(unittest.TestCase):
def test_init_with_optionals(self):
t = Users(domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2))
self.assertEqual(t.client.options.timeout, | (10, 2)) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_users_by_email.py | test_init_with_optionals | self.assertEqual | collection | 12 | import unittest
from unittest import mock
from ...management.users_by_email import UsersByEmail
class TestUsersByEmail(unittest.TestCase):
def test_init_with_optionals(self):
t = UsersByEmail(
domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)
)
self.assertEqu... | (10, 2)) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_hooks.py | test_delete_secrets | self.assertEqual | collection | 19 | import unittest
from unittest import mock
from ...management.hooks import Hooks
class TestRules(unittest.TestCase):
@mock.patch("auth0.management.hooks.RestClient")
def test_delete_secrets(self, mock_rc):
mock_instance = mock_rc.return_value
c = Hooks(domain="domain", token="jwttoken")
... | ["a", "b"]) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_hooks.py | test_get | self.assertEqual | collection | 19 | import unittest
from unittest import mock
from ...management.hooks import Hooks
class TestRules(unittest.TestCase):
@mock.patch("auth0.management.hooks.RestClient")
def test_get(self, mock_rc):
mock_instance = mock_rc.return_value
c = Hooks(domain="domain", token="jwttoken")
c.get("a... | {"fields": None}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_guardian.py | test_update_factor | self.assertEqual | collection | 20 | import unittest
from unittest import mock
from ...management.guardian import Guardian
class TestGuardian(unittest.TestCase):
@mock.patch("auth0.management.guardian.RestClient")
def test_update_factor(self, mock_rc):
mock_instance = mock_rc.return_value
g = Guardian(domain="domain", token="jw... | {"enabled": True}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_hooks.py | test_get | self.assertEqual | collection | 26 | import unittest
from unittest import mock
from ...management.hooks import Hooks
class TestRules(unittest.TestCase):
@mock.patch("auth0.management.hooks.RestClient")
def test_get(self, mock_rc):
mock_instance = mock_rc.return_value
c = Hooks(domain="domain", token="jwttoken")
c.get("a... | {"fields": "a,b"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_blacklists.py | test_create | self.assertEqual | collection | 21 | import unittest
from unittest import mock
from ...management.blacklists import Blacklists
class TestBlacklists(unittest.TestCase):
@mock.patch("auth0.management.blacklists.RestClient")
def test_create(self, mock_rc):
mock_instance = mock_rc.return_value
t = Blacklists(domain="domain", token=... | {"jti": "the-jti"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_guardian.py | test_update_factor | self.assertEqual | collection | 26 | import unittest
from unittest import mock
from ...management.guardian import Guardian
class TestGuardian(unittest.TestCase):
@mock.patch("auth0.management.guardian.RestClient")
def test_update_factor(self, mock_rc):
mock_instance = mock_rc.return_value
g = Guardian(domain="domain", token="jw... | {"enabled": False}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_client_grants.py | test_update | self.assertEqual | collection | 19 | import unittest
from unittest import mock
from ...management.client_grants import ClientGrants
class TestClientGrants(unittest.TestCase):
@mock.patch("auth0.management.client_grants.RestClient")
def test_update(self, mock_rc):
mock_instance = mock_rc.return_value
c = ClientGrants(domain="dom... | {"a": "b", "c": "d"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_clients.py | test_update | self.assertEqual | collection | 19 | import unittest
from unittest import mock
from ...management.clients import Clients
class TestClients(unittest.TestCase):
@mock.patch("auth0.management.clients.RestClient")
def test_update(self, mock_rc):
mock_instance = mock_rc.return_value
c = Clients(domain="domain", token="jwttoken")
... | {"a": "b", "c": "d"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_device_credentials.py | test_create | self.assertEqual | collection | 19 | import unittest
from unittest import mock
from ...management.device_credentials import DeviceCredentials
class TestDeviceCredentials(unittest.TestCase):
@mock.patch("auth0.management.device_credentials.RestClient")
def test_create(self, mock_rc):
mock_instance = mock_rc.return_value
c = Devi... | {"a": "b", "c": "d"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_emails.py | test_config | self.assertEqual | collection | 19 | import unittest
from unittest import mock
from ...management.emails import Emails
class TestEmails(unittest.TestCase):
@mock.patch("auth0.management.emails.RestClient")
def test_config(self, mock_rc):
mock_instance = mock_rc.return_value
e = Emails(domain="domain", token="jwttoken")
... | {"a": "b", "c": "d"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_hooks.py | test_create | self.assertEqual | collection | 19 | import unittest
from unittest import mock
from ...management.hooks import Hooks
class TestRules(unittest.TestCase):
@mock.patch("auth0.management.hooks.RestClient")
def test_create(self, mock_rc):
mock_instance = mock_rc.return_value
c = Hooks(domain="domain", token="jwttoken")
c.cre... | {"a": "b", "c": "d"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_prompts.py | test_update | self.assertEqual | collection | 19 | import unittest
from unittest import mock
from ...management.prompts import Prompts
class TestPrompts(unittest.TestCase):
@mock.patch("auth0.management.prompts.RestClient")
def test_update(self, mock_rc):
mock_instance = mock_rc.return_value
p = Prompts(domain="domain", token="jwttoken")
... | {"a": "b", "c": "d"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_roles.py | test_create | self.assertEqual | collection | 19 | import unittest
from unittest import mock
from ...management.roles import Roles
class TestRoles(unittest.TestCase):
@mock.patch("auth0.management.roles.RestClient")
def test_create(self, mock_rc):
mock_instance = mock_rc.return_value
u = Roles(domain="domain", token="jwttoken")
u.cre... | {"a": "b", "c": "d"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_rules.py | test_create | self.assertEqual | collection | 19 | import unittest
from unittest import mock
from ...management.rules import Rules
class TestRules(unittest.TestCase):
@mock.patch("auth0.management.rules.RestClient")
def test_create(self, mock_rc):
mock_instance = mock_rc.return_value
c = Rules(domain="domain", token="jwttoken")
c.cre... | {"a": "b", "c": "d"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_roles.py | test_add_users | self.assertEqual | collection | 19 | import unittest
from unittest import mock
from ...management.roles import Roles
class TestRoles(unittest.TestCase):
@mock.patch("auth0.management.roles.RestClient")
def test_add_users(self, mock_rc):
mock_instance = mock_rc.return_value
u = Roles(domain="domain", token="jwttoken")
u.... | {"users": ["a", "b"]}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_roles.py | test_remove_permissions | self.assertEqual | collection | 19 | import unittest
from unittest import mock
from ...management.roles import Roles
class TestRoles(unittest.TestCase):
@mock.patch("auth0.management.roles.RestClient")
def test_remove_permissions(self, mock_rc):
mock_instance = mock_rc.return_value
u = Roles(domain="domain", token="jwttoken")
... | {"permissions": ["a", "b"]}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_custom_domains.py | test_create_new | self.assertEqual | collection | 19 | import unittest
from unittest import mock
from ...management.custom_domains import CustomDomains
class TestCustomDomains(unittest.TestCase):
@mock.patch("auth0.management.custom_domains.RestClient")
def test_create_new(self, mock_rc):
mock_instance = mock_rc.return_value
g = CustomDomains(do... | {"a": "b", "c": "d", "e": "f"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/authentication/test_revoke_token.py | test_revoke_refresh_token | self.assertEqual | collection | 18 | import unittest
from unittest import mock
from ...authentication.revoke_token import RevokeToken
class TestRevokeToken(unittest.TestCase):
@mock.patch("auth0.rest.RestClient.post")
def test_revoke_refresh_token(self, mock_post):
a = RevokeToken("my.domain.com", "cid")
# regular apps
a... | {"client_id": "cid", "token": "tkn"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_blacklists.py | test_create | self.assertEqual | collection | 29 | import unittest
from unittest import mock
from ...management.blacklists import Blacklists
class TestBlacklists(unittest.TestCase):
@mock.patch("auth0.management.blacklists.RestClient")
def test_create(self, mock_rc):
mock_instance = mock_rc.return_value
t = Blacklists(domain="domain", token=... | {"jti": "the-jti", "aud": "the-aud"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_clients.py | test_get | self.assertEqual | collection | 19 | import unittest
from unittest import mock
from ...management.clients import Clients
class TestClients(unittest.TestCase):
@mock.patch("auth0.management.clients.RestClient")
def test_get(self, mock_rc):
mock_instance = mock_rc.return_value
c = Clients(domain="domain", token="jwttoken")
... | {"fields": None, "include_fields": "true"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_connections.py | test_get | self.assertEqual | collection | 19 | import unittest
from unittest import mock
from ...management.connections import Connections
class TestConnection(unittest.TestCase):
@mock.patch("auth0.management.connections.RestClient")
def test_get(self, mock_rc):
mock_instance = mock_rc.return_value
mock_instance.get.return_value = {}
... | {"fields": None, "include_fields": "true"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_emails.py | test_get | self.assertEqual | collection | 19 | import unittest
from unittest import mock
from ...management.emails import Emails
class TestEmails(unittest.TestCase):
@mock.patch("auth0.management.emails.RestClient")
def test_get(self, mock_rc):
mock_instance = mock_rc.return_value
e = Emails(domain="domain", token="jwttoken")
e.g... | {"fields": None, "include_fields": "true"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_rules.py | test_get | self.assertEqual | collection | 19 | import unittest
from unittest import mock
from ...management.rules import Rules
class TestRules(unittest.TestCase):
@mock.patch("auth0.management.rules.RestClient")
def test_get(self, mock_rc):
mock_instance = mock_rc.return_value
c = Rules(domain="domain", token="jwttoken")
c.get("a... | {"fields": None, "include_fields": "true"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_tenants.py | test_get | self.assertEqual | collection | 20 | import unittest
from unittest import mock
from ...management.tenants import Tenants
class TestTenants(unittest.TestCase):
@mock.patch("auth0.management.tenants.RestClient")
def test_get(self, mock_rc):
mock_instance = mock_rc.return_value
mock_instance.get.return_value = {}
t = Tenan... | {"fields": None, "include_fields": "true"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_connections.py | test_get | self.assertEqual | collection | 25 | import unittest
from unittest import mock
from ...management.connections import Connections
class TestConnection(unittest.TestCase):
@mock.patch("auth0.management.connections.RestClient")
def test_get(self, mock_rc):
mock_instance = mock_rc.return_value
mock_instance.get.return_value = {}
... | {"fields": "a,b", "include_fields": "true"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_tenants.py | test_get | self.assertEqual | collection | 34 | import unittest
from unittest import mock
from ...management.tenants import Tenants
class TestTenants(unittest.TestCase):
@mock.patch("auth0.management.tenants.RestClient")
def test_get(self, mock_rc):
mock_instance = mock_rc.return_value
mock_instance.get.return_value = {}
t = Tenan... | {"fields": "a,b", "include_fields": "true"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_clients.py | test_get | self.assertEqual | collection | 26 | import unittest
from unittest import mock
from ...management.clients import Clients
class TestClients(unittest.TestCase):
@mock.patch("auth0.management.clients.RestClient")
def test_get(self, mock_rc):
mock_instance = mock_rc.return_value
c = Clients(domain="domain", token="jwttoken")
... | {"fields": "a,b", "include_fields": "false"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_emails.py | test_get | self.assertEqual | collection | 26 | import unittest
from unittest import mock
from ...management.emails import Emails
class TestEmails(unittest.TestCase):
@mock.patch("auth0.management.emails.RestClient")
def test_get(self, mock_rc):
mock_instance = mock_rc.return_value
e = Emails(domain="domain", token="jwttoken")
e.g... | {"fields": "a,b", "include_fields": "false"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_rules.py | test_get | self.assertEqual | collection | 26 | import unittest
from unittest import mock
from ...management.rules import Rules
class TestRules(unittest.TestCase):
@mock.patch("auth0.management.rules.RestClient")
def test_get(self, mock_rc):
mock_instance = mock_rc.return_value
c = Rules(domain="domain", token="jwttoken")
c.get("a... | {"fields": "a,b", "include_fields": "false"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/authentication/test_revoke_token.py | test_revoke_refresh_token | self.assertEqual | collection | 27 | import unittest
from unittest import mock
from ...authentication.revoke_token import RevokeToken
class TestRevokeToken(unittest.TestCase):
@mock.patch("auth0.rest.RestClient.post")
def test_revoke_refresh_token(self, mock_post):
a = RevokeToken("my.domain.com", "cid")
# regular apps
a... | {"client_id": "cid", "token": "tkn", "client_secret": "sh!"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_users_by_email.py | test_search_users_by_email | self.assertEqual | collection | 19 | import unittest
from unittest import mock
from ...management.users_by_email import UsersByEmail
class TestUsersByEmail(unittest.TestCase):
@mock.patch("auth0.management.users_by_email.RestClient")
def test_search_users_by_email(self, mock_rc):
mock_instance = mock_rc.return_value
u = UsersBy... | {"email": "A@B.com", "fields": None, "include_fields": "true"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_users_by_email.py | test_search_users_by_email | self.assertEqual | collection | 31 | import unittest
from unittest import mock
from ...management.users_by_email import UsersByEmail
class TestUsersByEmail(unittest.TestCase):
@mock.patch("auth0.management.users_by_email.RestClient")
def test_search_users_by_email(self, mock_rc):
mock_instance = mock_rc.return_value
u = UsersBy... | {"email": "a@b.com", "fields": "a,b", "include_fields": "false"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_guardian.py | test_update_templates | self.assertEqual | collection | 22 | import unittest
from unittest import mock
from ...management.guardian import Guardian
class TestGuardian(unittest.TestCase):
@mock.patch("auth0.management.guardian.RestClient")
def test_update_templates(self, mock_rc):
mock_instance = mock_rc.return_value
g = Guardian(domain="domain", token=... | {"enrollment_message": "hello", "verification_message": "verified"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_clients.py | test_all | self.assertEqual | collection | 48 | import unittest
from unittest import mock
from ...management.clients import Clients
class TestClients(unittest.TestCase):
@mock.patch("auth0.management.clients.RestClient")
def test_all(self, mock_rc):
mock_instance = mock_rc.return_value
c = Clients(domain="domain", token="jwttoken")
... | {"fields": None, "include_fields": "true", "page": 7, "per_page": 25}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_guardian.py | test_create_enrollment_ticket | self.assertEqual | collection | 20 | import unittest
from unittest import mock
from ...management.guardian import Guardian
class TestGuardian(unittest.TestCase):
@mock.patch("auth0.management.guardian.RestClient")
def test_create_enrollment_ticket(self, mock_rc):
mock_instance = mock_rc.return_value
g = Guardian(domain="domain"... | {"user_id": "some_id", "email": "test@test.com", "send_mail": "false"}) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/authentication/test_social.py | test_login | self.assertEqual | complex_expr | 15 | import unittest
from unittest import mock
from ...authentication.social import Social
class TestSocial(unittest.TestCase):
@mock.patch("auth0.authentication.social.Social.post")
def test_login(self, mock_post):
s = Social("a.b.c", "cid")
s.login(access_token="atk", connection="conn")
... | args[0]) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_actions.py | test_get_actions | self.assertEqual | complex_expr | 18 | import unittest
from unittest import mock
from ...management.actions import Actions
class TestActions(unittest.TestCase):
@mock.patch("auth0.management.actions.RestClient")
def test_get_actions(self, mock_rc):
mock_instance = mock_rc.return_value
c = Actions(domain="domain", token="jwttoken"... | args[0]) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_atack_protection.py | test_get_breached_password_detection | self.assertEqual | complex_expr | 19 | import unittest
from unittest import mock
from ...management.attack_protection import AttackProtection
class TestAttackProtection(unittest.TestCase):
@mock.patch("auth0.management.attack_protection.RestClient")
def test_get_breached_password_detection(self, mock_rc):
mock_instance = mock_rc.return_va... | args[0]) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_blacklists.py | test_create | self.assertEqual | complex_expr | 20 | import unittest
from unittest import mock
from ...management.blacklists import Blacklists
class TestBlacklists(unittest.TestCase):
@mock.patch("auth0.management.blacklists.RestClient")
def test_create(self, mock_rc):
mock_instance = mock_rc.return_value
t = Blacklists(domain="domain", token=... | args[0]) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_client_grants.py | test_all | self.assertEqual | complex_expr | 20 | import unittest
from unittest import mock
from ...management.client_grants import ClientGrants
class TestClientGrants(unittest.TestCase):
@mock.patch("auth0.management.client_grants.RestClient")
def test_all(self, mock_rc):
mock_instance = mock_rc.return_value
c = ClientGrants(domain="domain... | args[0]) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_clients.py | test_all | self.assertEqual | complex_expr | 20 | import unittest
from unittest import mock
from ...management.clients import Clients
class TestClients(unittest.TestCase):
@mock.patch("auth0.management.clients.RestClient")
def test_all(self, mock_rc):
mock_instance = mock_rc.return_value
c = Clients(domain="domain", token="jwttoken")
... | args[0]) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_connections.py | test_all | self.assertEqual | complex_expr | 20 | import unittest
from unittest import mock
from ...management.connections import Connections
class TestConnection(unittest.TestCase):
@mock.patch("auth0.management.connections.RestClient")
def test_all(self, mock_rc):
mock_instance = mock_rc.return_value
mock_instance.get.return_value = {}
... | args[0]) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_custom_domains.py | test_create_new | self.assertEqual | complex_expr | 18 | import unittest
from unittest import mock
from ...management.custom_domains import CustomDomains
class TestCustomDomains(unittest.TestCase):
@mock.patch("auth0.management.custom_domains.RestClient")
def test_create_new(self, mock_rc):
mock_instance = mock_rc.return_value
g = CustomDomains(do... | args[0]) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_device_credentials.py | test_get | self.assertEqual | complex_expr | 18 | import unittest
from unittest import mock
from ...management.device_credentials import DeviceCredentials
class TestDeviceCredentials(unittest.TestCase):
@mock.patch("auth0.management.device_credentials.RestClient")
def test_get(self, mock_rc):
mock_instance = mock_rc.return_value
c = DeviceC... | args[0]) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_emails.py | test_get | self.assertEqual | complex_expr | 18 | import unittest
from unittest import mock
from ...management.emails import Emails
class TestEmails(unittest.TestCase):
@mock.patch("auth0.management.emails.RestClient")
def test_get(self, mock_rc):
mock_instance = mock_rc.return_value
e = Emails(domain="domain", token="jwttoken")
e.g... | args[0]) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_guardian.py | test_update_factor | self.assertEqual | complex_expr | 17 | import unittest
from unittest import mock
from ...management.guardian import Guardian
class TestGuardian(unittest.TestCase):
@mock.patch("auth0.management.guardian.RestClient")
def test_update_factor(self, mock_rc):
mock_instance = mock_rc.return_value
g = Guardian(domain="domain", token="jw... | args[0]) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_hooks.py | test_all | self.assertEqual | complex_expr | 20 | import unittest
from unittest import mock
from ...management.hooks import Hooks
class TestRules(unittest.TestCase):
@mock.patch("auth0.management.hooks.RestClient")
def test_all(self, mock_rc):
mock_instance = mock_rc.return_value
c = Hooks(domain="domain", token="jwttoken")
# with ... | args[0]) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_log_streams.py | test_list | self.assertEqual | complex_expr | 19 | import unittest
from unittest import mock
from ...management.log_streams import LogStreams
class TestLogStreams(unittest.TestCase):
@mock.patch("auth0.management.log_streams.RestClient")
def test_list(self, mock_rc):
mock_instance = mock_rc.return_value
c = LogStreams(domain="domain", token=... | args[0]) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_organizations.py | test_all_organizations | self.assertEqual | complex_expr | 20 | import unittest
from unittest import mock
from ...management.organizations import Organizations
class TestOrganizations(unittest.TestCase):
@mock.patch("auth0.management.organizations.RestClient")
def test_all_organizations(self, mock_rc):
mock_instance = mock_rc.return_value
c = Organizatio... | args[0]) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_prompts.py | test_get | self.assertEqual | complex_expr | 18 | import unittest
from unittest import mock
from ...management.prompts import Prompts
class TestPrompts(unittest.TestCase):
@mock.patch("auth0.management.prompts.RestClient")
def test_get(self, mock_rc):
mock_instance = mock_rc.return_value
p = Prompts(domain="domain", token="jwttoken")
... | args[0]) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_roles.py | test_list | self.assertEqual | complex_expr | 18 | import unittest
from unittest import mock
from ...management.roles import Roles
class TestRoles(unittest.TestCase):
@mock.patch("auth0.management.roles.RestClient")
def test_list(self, mock_rc):
mock_instance = mock_rc.return_value
u = Roles(domain="domain", token="jwttoken")
u.list(... | args[0]) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_actions.py | test_init_with_optionals | self.assertEqual | none_literal | 12 | import unittest
from unittest import mock
from ...management.actions import Actions
class TestActions(unittest.TestCase):
def test_init_with_optionals(self):
t = Actions(domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2))
self.assertEqual(t.client.options.timeout, (10, 2))
... | None) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_atack_protection.py | test_init_with_optionals | self.assertEqual | none_literal | 14 | import unittest
from unittest import mock
from ...management.attack_protection import AttackProtection
class TestAttackProtection(unittest.TestCase):
def test_init_with_optionals(self):
t = AttackProtection(
domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)
)
... | None) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_blacklists.py | test_init_with_optionals | self.assertEqual | none_literal | 14 | import unittest
from unittest import mock
from ...management.blacklists import Blacklists
class TestBlacklists(unittest.TestCase):
def test_init_with_optionals(self):
t = Blacklists(
domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)
)
self.assertEqual(t.client... | None) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_branding.py | test_init_with_optionals | self.assertEqual | none_literal | 15 | import unittest
from unittest import mock
from ...management.branding import Branding
class TestBranding(unittest.TestCase):
def test_init_with_optionals(self):
branding = Branding(
domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)
)
self.assertEqual(branding.... | None) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_client_credentials.py | test_init_with_optionals | self.assertEqual | none_literal | 14 | import unittest
from unittest import mock
from ...management.client_credentials import ClientCredentials
class TestClientCredentials(unittest.TestCase):
def test_init_with_optionals(self):
t = ClientCredentials(
domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)
)
... | None) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_client_grants.py | test_init_with_optionals | self.assertEqual | none_literal | 14 | import unittest
from unittest import mock
from ...management.client_grants import ClientGrants
class TestClientGrants(unittest.TestCase):
def test_init_with_optionals(self):
t = ClientGrants(
domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)
)
self.assertEqual... | None) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_clients.py | test_init_with_optionals | self.assertEqual | none_literal | 12 | import unittest
from unittest import mock
from ...management.clients import Clients
class TestClients(unittest.TestCase):
def test_init_with_optionals(self):
t = Clients(domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2))
self.assertEqual(t.client.options.timeout, (10, 2))
... | None) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_connections.py | test_init_with_optionals | self.assertEqual | none_literal | 14 | import unittest
from unittest import mock
from ...management.connections import Connections
class TestConnection(unittest.TestCase):
def test_init_with_optionals(self):
t = Connections(
domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)
)
self.assertEqual(t.cli... | None) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_custom_domains.py | test_init_with_optionals | self.assertEqual | none_literal | 14 | import unittest
from unittest import mock
from ...management.custom_domains import CustomDomains
class TestCustomDomains(unittest.TestCase):
def test_init_with_optionals(self):
t = CustomDomains(
domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)
)
self.assertE... | None) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_device_credentials.py | test_init_with_optionals | self.assertEqual | none_literal | 14 | import unittest
from unittest import mock
from ...management.device_credentials import DeviceCredentials
class TestDeviceCredentials(unittest.TestCase):
def test_init_with_optionals(self):
t = DeviceCredentials(
domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)
)
... | None) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_email_endpoints.py | test_init_with_optionals | self.assertEqual | none_literal | 14 | import unittest
from unittest import mock
from ...management.email_templates import EmailTemplates
class TestClients(unittest.TestCase):
def test_init_with_optionals(self):
t = EmailTemplates(
domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)
)
self.assertEqua... | None) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_emails.py | test_init_with_optionals | self.assertEqual | none_literal | 12 | import unittest
from unittest import mock
from ...management.emails import Emails
class TestEmails(unittest.TestCase):
def test_init_with_optionals(self):
t = Emails(domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2))
self.assertEqual(t.client.options.timeout, (10, 2))
tel... | None) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_grants.py | test_init_with_optionals | self.assertEqual | none_literal | 12 | import unittest
from unittest import mock
from ...management.grants import Grants
class TestGrants(unittest.TestCase):
def test_init_with_optionals(self):
t = Grants(domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2))
self.assertEqual(t.client.options.timeout, (10, 2))
tel... | None) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_guardian.py | test_init_with_optionals | self.assertEqual | none_literal | 14 | import unittest
from unittest import mock
from ...management.guardian import Guardian
class TestGuardian(unittest.TestCase):
def test_init_with_optionals(self):
t = Guardian(
domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)
)
self.assertEqual(t.client.options... | None) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_hooks.py | test_init_with_optionals | self.assertEqual | none_literal | 12 | import unittest
from unittest import mock
from ...management.hooks import Hooks
class TestRules(unittest.TestCase):
def test_init_with_optionals(self):
t = Hooks(domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2))
self.assertEqual(t.client.options.timeout, (10, 2))
telemet... | None) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_jobs.py | test_init_with_optionals | self.assertEqual | none_literal | 12 | import unittest
from unittest import mock
from ...management.jobs import Jobs
class TestJobs(unittest.TestCase):
def test_init_with_optionals(self):
t = Jobs(domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2))
self.assertEqual(t.client.options.timeout, (10, 2))
telemetry_h... | None) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_log_streams.py | test_init_with_optionals | self.assertEqual | none_literal | 14 | import unittest
from unittest import mock
from ...management.log_streams import LogStreams
class TestLogStreams(unittest.TestCase):
def test_init_with_optionals(self):
t = LogStreams(
domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)
)
self.assertEqual(t.clien... | None) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_logs.py | test_init_with_optionals | self.assertEqual | none_literal | 12 | import unittest
from unittest import mock
from ...management.logs import Logs
class TestLogs(unittest.TestCase):
def test_init_with_optionals(self):
t = Logs(domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2))
self.assertEqual(t.client.options.timeout, (10, 2))
telemetry_h... | None) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_organizations.py | test_init_with_optionals | self.assertEqual | none_literal | 14 | import unittest
from unittest import mock
from ...management.organizations import Organizations
class TestOrganizations(unittest.TestCase):
def test_init_with_optionals(self):
t = Organizations(
domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)
)
self.assertEq... | None) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_prompts.py | test_init_with_optionals | self.assertEqual | none_literal | 12 | import unittest
from unittest import mock
from ...management.prompts import Prompts
class TestPrompts(unittest.TestCase):
def test_init_with_optionals(self):
t = Prompts(domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2))
self.assertEqual(t.client.options.timeout, (10, 2))
... | None) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_resource_servers.py | test_init_with_optionals | self.assertEqual | none_literal | 14 | import unittest
from unittest import mock
from ...management.resource_servers import ResourceServers
class TestResourceServers(unittest.TestCase):
def test_init_with_optionals(self):
t = ResourceServers(
domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)
)
self... | None) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
auth0/auth0-python | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | train | train | auth0/test/management/test_roles.py | test_init_with_optionals | self.assertEqual | none_literal | 12 | import unittest
from unittest import mock
from ...management.roles import Roles
class TestRoles(unittest.TestCase):
def test_init_with_optionals(self):
t = Roles(domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2))
self.assertEqual(t.client.options.timeout, (10, 2))
telemet... | None) | e7d5f1c2a160ea3f2cea7cc49bdbac5608b8bb9e | 125 | v2_extractor_at_anchor |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.