12
12
from callee import Attrs
13
13
from mock import ANY , MagicMock
14
14
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
16
17
17
18
clients = re .compile (r"^https://example\.com/api/v2/clients.*" )
18
19
factors = re .compile (r"^https://example\.com/api/v2/guardian/factors.*" )
@@ -60,6 +61,7 @@ async def test_get(self, mocked):
60
61
allow_redirects = True ,
61
62
params = {"include_fields" : "true" },
62
63
headers = headers ,
64
+ timeout = ANY ,
63
65
)
64
66
65
67
@aioresponses ()
@@ -74,6 +76,7 @@ async def test_post(self, mocked):
74
76
allow_redirects = True ,
75
77
json = data ,
76
78
headers = headers ,
79
+ timeout = ANY ,
77
80
)
78
81
79
82
@aioresponses ()
@@ -96,6 +99,7 @@ async def test_file_post(self, mocked):
96
99
"users" : users ,
97
100
},
98
101
headers = file_port_headers ,
102
+ timeout = ANY ,
99
103
)
100
104
users .close ()
101
105
@@ -111,6 +115,7 @@ async def test_patch(self, mocked):
111
115
allow_redirects = True ,
112
116
json = data ,
113
117
headers = headers ,
118
+ timeout = ANY ,
114
119
)
115
120
116
121
@aioresponses ()
@@ -125,6 +130,7 @@ async def test_put(self, mocked):
125
130
allow_redirects = True ,
126
131
json = data ,
127
132
headers = headers ,
133
+ timeout = ANY ,
128
134
)
129
135
130
136
@aioresponses ()
@@ -139,6 +145,7 @@ async def test_delete(self, mocked):
139
145
params = {},
140
146
json = None ,
141
147
headers = headers ,
148
+ timeout = ANY ,
142
149
)
143
150
144
151
@aioresponses ()
@@ -152,6 +159,7 @@ async def test_shared_session(self, mocked):
152
159
allow_redirects = True ,
153
160
params = {"include_fields" : "true" },
154
161
headers = headers ,
162
+ timeout = ANY ,
155
163
)
156
164
157
165
@aioresponses ()
0 commit comments