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

Skip to content

Commit 1151a40

Browse files
committed
fix tests
1 parent 13d08b9 commit 1151a40

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

auth0/v3/management/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from .actions import Actions
2-
from .asyncify import asyncify
32
from .attack_protection import AttackProtection
43
from .auth0 import Auth0
54
from .blacklists import Blacklists
@@ -57,5 +56,4 @@
5756
"UserBlocks",
5857
"UsersByEmail",
5958
"Users",
60-
"asyncify",
6159
)

auth0/v3/test_async/test_asyncify.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
from callee import Attrs
1313
from mock import ANY, MagicMock
1414

15-
from auth0.v3.management import Clients, Guardian, Jobs, asyncify
15+
from auth0.v3.management import Clients, Guardian, Jobs
16+
from auth0.v3.management.asyncify import asyncify
1617

1718
clients = re.compile(r"^https://example\.com/api/v2/clients.*")
1819
factors = re.compile(r"^https://example\.com/api/v2/guardian/factors.*")
@@ -60,6 +61,7 @@ async def test_get(self, mocked):
6061
allow_redirects=True,
6162
params={"include_fields": "true"},
6263
headers=headers,
64+
timeout=ANY,
6365
)
6466

6567
@aioresponses()
@@ -74,6 +76,7 @@ async def test_post(self, mocked):
7476
allow_redirects=True,
7577
json=data,
7678
headers=headers,
79+
timeout=ANY,
7780
)
7881

7982
@aioresponses()
@@ -96,6 +99,7 @@ async def test_file_post(self, mocked):
9699
"users": users,
97100
},
98101
headers=file_port_headers,
102+
timeout=ANY,
99103
)
100104
users.close()
101105

@@ -111,6 +115,7 @@ async def test_patch(self, mocked):
111115
allow_redirects=True,
112116
json=data,
113117
headers=headers,
118+
timeout=ANY,
114119
)
115120

116121
@aioresponses()
@@ -125,6 +130,7 @@ async def test_put(self, mocked):
125130
allow_redirects=True,
126131
json=data,
127132
headers=headers,
133+
timeout=ANY,
128134
)
129135

130136
@aioresponses()
@@ -139,6 +145,7 @@ async def test_delete(self, mocked):
139145
params={},
140146
json=None,
141147
headers=headers,
148+
timeout=ANY,
142149
)
143150

144151
@aioresponses()
@@ -152,6 +159,7 @@ async def test_shared_session(self, mocked):
152159
allow_redirects=True,
153160
params={"include_fields": "true"},
154161
headers=headers,
162+
timeout=ANY,
155163
)
156164

157165
@aioresponses()

0 commit comments

Comments
 (0)