@@ -50,7 +50,6 @@ async def create_new_client() -> AsyncIterable[AsyncGoTrueClient]:
50
50
access_token : Optional [str ] = None
51
51
52
52
53
- @pytest .mark .asyncio
54
53
async def test_sign_up (client : AsyncGoTrueClient ):
55
54
try :
56
55
response = await client .sign_up (
@@ -80,7 +79,6 @@ async def test_sign_up(client: AsyncGoTrueClient):
80
79
assert False , str (e )
81
80
82
81
83
- @pytest .mark .asyncio
84
82
async def test_set_session_should_return_no_error (
85
83
client_with_session : AsyncGoTrueClient ,
86
84
):
@@ -101,7 +99,6 @@ async def test_set_session_should_return_no_error(
101
99
assert False , str (e )
102
100
103
101
104
- @pytest .mark .asyncio
105
102
@pytest .mark .depends (on = [test_sign_up .__name__ ])
106
103
async def test_sign_up_the_same_user_twice_should_throw_an_error (
107
104
client : AsyncGoTrueClient ,
@@ -119,7 +116,6 @@ async def test_sign_up_the_same_user_twice_should_throw_an_error(
119
116
assert False , str (e )
120
117
121
118
122
- @pytest .mark .asyncio
123
119
@pytest .mark .depends (on = [test_sign_up .__name__ ])
124
120
async def test_set_auth_should_set_the_auth_headers_on_a_new_client (
125
121
new_client : AsyncGoTrueClient ,
@@ -133,7 +129,6 @@ async def test_set_auth_should_set_the_auth_headers_on_a_new_client(
133
129
assert False , str (e )
134
130
135
131
136
- @pytest .mark .asyncio
137
132
@pytest .mark .depends (
138
133
on = [test_set_auth_should_set_the_auth_headers_on_a_new_client .__name__ ]
139
134
)
@@ -150,7 +145,6 @@ async def test_set_auth_should_set_the_auth_headers_on_a_new_client_and_recover(
150
145
assert False , str (e )
151
146
152
147
153
- @pytest .mark .asyncio
154
148
@pytest .mark .depends (on = [test_sign_up .__name__ ])
155
149
async def test_sign_in (client : AsyncGoTrueClient ):
156
150
try :
@@ -173,7 +167,6 @@ async def test_sign_in(client: AsyncGoTrueClient):
173
167
assert False , str (e )
174
168
175
169
176
- @pytest .mark .asyncio
177
170
async def test_sign_in_with_refresh_token (client_with_session : AsyncGoTrueClient ):
178
171
try :
179
172
response = await client_with_session .sign_up (
@@ -203,7 +196,6 @@ async def test_sign_in_with_refresh_token(client_with_session: AsyncGoTrueClient
203
196
assert False , str (e )
204
197
205
198
206
- @pytest .mark .asyncio
207
199
@pytest .mark .depends (on = [test_sign_in .__name__ ])
208
200
async def test_get_user (client : AsyncGoTrueClient ):
209
201
try :
@@ -223,7 +215,6 @@ async def test_get_user(client: AsyncGoTrueClient):
223
215
assert False , str (e )
224
216
225
217
226
- @pytest .mark .asyncio
227
218
@pytest .mark .depends (on = [test_sign_in .__name__ ])
228
219
async def test_get_session (client : AsyncGoTrueClient ):
229
220
try :
@@ -238,7 +229,6 @@ async def test_get_session(client: AsyncGoTrueClient):
238
229
assert False , str (e )
239
230
240
231
241
- @pytest .mark .asyncio
242
232
@pytest .mark .depends (on = [test_sign_in .__name__ ])
243
233
async def test_update_user (client : AsyncGoTrueClient ):
244
234
try :
@@ -259,7 +249,6 @@ async def test_update_user(client: AsyncGoTrueClient):
259
249
assert False , str (e )
260
250
261
251
262
- @pytest .mark .asyncio
263
252
@pytest .mark .depends (on = [test_sign_in .__name__ ])
264
253
async def test_update_user_dict (client : AsyncGoTrueClient ):
265
254
try :
@@ -278,7 +267,6 @@ async def test_update_user_dict(client: AsyncGoTrueClient):
278
267
assert False , str (e )
279
268
280
269
281
- @pytest .mark .asyncio
282
270
@pytest .mark .depends (on = [test_update_user .__name__ ])
283
271
async def test_get_user_after_update (client : AsyncGoTrueClient ):
284
272
try :
@@ -297,7 +285,6 @@ async def test_get_user_after_update(client: AsyncGoTrueClient):
297
285
assert False , str (e )
298
286
299
287
300
- @pytest .mark .asyncio
301
288
@pytest .mark .depends (on = [test_get_user_after_update .__name__ ])
302
289
async def test_sign_out (client : AsyncGoTrueClient ):
303
290
try :
@@ -309,7 +296,6 @@ async def test_sign_out(client: AsyncGoTrueClient):
309
296
assert False , str (e )
310
297
311
298
312
- @pytest .mark .asyncio
313
299
@pytest .mark .depends (on = [test_sign_out .__name__ ])
314
300
async def test_get_user_after_sign_out (client : AsyncGoTrueClient ):
315
301
try :
@@ -320,7 +306,6 @@ async def test_get_user_after_sign_out(client: AsyncGoTrueClient):
320
306
assert False , str (e )
321
307
322
308
323
- @pytest .mark .asyncio
324
309
@pytest .mark .depends (on = [test_sign_out .__name__ ])
325
310
async def test_get_update_user_after_sign_out (client : AsyncGoTrueClient ):
326
311
expected_error_message = "Not logged in."
@@ -334,7 +319,6 @@ async def test_get_update_user_after_sign_out(client: AsyncGoTrueClient):
334
319
assert False , str (e )
335
320
336
321
337
- @pytest .mark .asyncio
338
322
@pytest .mark .depends (on = [test_get_user_after_sign_out .__name__ ])
339
323
async def test_sign_in_with_the_wrong_password (client : AsyncGoTrueClient ):
340
324
try :
@@ -346,7 +330,6 @@ async def test_sign_in_with_the_wrong_password(client: AsyncGoTrueClient):
346
330
assert False , str (e )
347
331
348
332
349
- @pytest .mark .asyncio
350
333
async def test_sign_up_with_password_none (client : AsyncGoTrueClient ):
351
334
expected_error_message = "Password must be defined, can't be None."
352
335
try :
@@ -358,7 +341,6 @@ async def test_sign_up_with_password_none(client: AsyncGoTrueClient):
358
341
assert False , str (e )
359
342
360
343
361
- @pytest .mark .asyncio
362
344
async def test_sign_up_with_email_and_phone_none (client : AsyncGoTrueClient ):
363
345
expected_error_message = "Email or phone must be defined, both can't be None."
364
346
try :
@@ -370,7 +352,6 @@ async def test_sign_up_with_email_and_phone_none(client: AsyncGoTrueClient):
370
352
assert False , str (e )
371
353
372
354
373
- @pytest .mark .asyncio
374
355
async def test_sign_in_with_all_nones (client : AsyncGoTrueClient ):
375
356
expected_error_message = (
376
357
"Email, phone, refresh_token, or provider must be defined, "
@@ -385,7 +366,6 @@ async def test_sign_in_with_all_nones(client: AsyncGoTrueClient):
385
366
assert False , str (e )
386
367
387
368
388
- @pytest .mark .asyncio
389
369
async def test_sign_in_with_magic_link (client : AsyncGoTrueClient ):
390
370
try :
391
371
response = await client .sign_in (email = email )
@@ -394,7 +374,6 @@ async def test_sign_in_with_magic_link(client: AsyncGoTrueClient):
394
374
assert False , str (e )
395
375
396
376
397
- @pytest .mark .asyncio
398
377
@pytest .mark .depends (on = [test_sign_up .__name__ ])
399
378
async def test_get_session_from_url (client : AsyncGoTrueClient ):
400
379
try :
@@ -413,7 +392,6 @@ async def test_get_session_from_url(client: AsyncGoTrueClient):
413
392
assert False , str (e )
414
393
415
394
416
- @pytest .mark .asyncio
417
395
async def test_get_session_from_url_errors (client : AsyncGoTrueClient ):
418
396
try :
419
397
dummy_url = "https://localhost"
@@ -465,7 +443,6 @@ async def test_get_session_from_url_errors(client: AsyncGoTrueClient):
465
443
assert False , str (e )
466
444
467
445
468
- @pytest .mark .asyncio
469
446
@pytest .mark .depends (on = [test_get_update_user_after_sign_out .__name__ ])
470
447
async def test_refresh_session (client : AsyncGoTrueClient ):
471
448
try :
0 commit comments