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

Skip to content

Commit 42dc076

Browse files
authored
Merge branch 'master' into dependabot/pip/requests-2.28.0
2 parents 71cbfb4 + f89999a commit 42dc076

File tree

5 files changed

+26
-6
lines changed

5 files changed

+26
-6
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2.1
22

33
orbs:
44
python: circleci/[email protected]
5-
ship: auth0/ship@dev:989f2c5
5+
ship: auth0/ship@dev:0f93342
66

77
executors:
88
python_3_10:

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
Changes
2-
=======
1+
# Change Log
2+
3+
## [3.23.1](https://github.com/auth0/auth0-python/tree/3.23.1) (2022-06-10)
4+
[Full Changelog](https://github.com/auth0/auth0-python/compare/3.23.0...3.23.1)
5+
6+
**Fixed**
7+
- Pass rest_options through Auth0 constructor [\#354](https://github.com/auth0/auth0-python/pull/354) ([adamjmcgrath](https://github.com/adamjmcgrath))
8+
39

410
3.23.0
511
------------------

auth0/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.23.0"
1+
__version__ = "3.23.1"

auth0/v3/management/auth0.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,15 @@ def __init__(self, domain, token, rest_options=None):
8080

8181
for name, cls in modules.items():
8282
cls = asyncify(cls)
83-
setattr(self, name, cls(domain=domain, token=token, rest_options=None))
83+
setattr(
84+
self,
85+
name,
86+
cls(domain=domain, token=token, rest_options=rest_options),
87+
)
8488
else:
8589
for name, cls in modules.items():
86-
setattr(self, name, cls(domain=domain, token=token, rest_options=None))
90+
setattr(
91+
self,
92+
name,
93+
cls(domain=domain, token=token, rest_options=rest_options),
94+
)

auth0/v3/test/management/test_auth0.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from ...management.user_blocks import UserBlocks
3030
from ...management.users import Users
3131
from ...management.users_by_email import UsersByEmail
32+
from ...rest import RestClientOptions
3233

3334

3435
class TestAuth0(unittest.TestCase):
@@ -120,3 +121,8 @@ def test_users_by_email(self):
120121

121122
def test_users(self):
122123
self.assertIsInstance(self.a0.users, Users)
124+
125+
def test_args(self):
126+
rest_options = RestClientOptions(retries=99)
127+
auth0 = Auth0(self.domain, self.token, rest_options=rest_options)
128+
self.assertEqual(auth0.users.client.options.retries, 99)

0 commit comments

Comments
 (0)