@@ -212,7 +212,6 @@ def test_add_delay_profile(readarr_client: ReadarrAPI):
212
212
assert data ["minimumCustomFormatScore" ] == 10
213
213
214
214
215
- @pytest .mark .usefixtures
216
215
def test_get_missing (readarr_client : ReadarrAPI ):
217
216
data = readarr_client .get_missing ()
218
217
assert isinstance (data , dict )
@@ -233,7 +232,6 @@ def test_get_missing(readarr_client: ReadarrAPI):
233
232
assert False
234
233
235
234
236
- @pytest .mark .usefixtures
237
235
def test_get_cutoff (readarr_client : ReadarrAPI ):
238
236
data = readarr_client .get_cutoff ()
239
237
assert isinstance (data , dict )
@@ -255,7 +253,6 @@ def test_get_cutoff(readarr_client: ReadarrAPI):
255
253
assert False
256
254
257
255
258
- @pytest .mark .usefixtures
259
256
def test_get_book (readarr_client : ReadarrAPI ):
260
257
data = readarr_client .get_book ()
261
258
assert isinstance (data , list )
@@ -264,20 +261,19 @@ def test_get_book(readarr_client: ReadarrAPI):
264
261
assert isinstance (data , dict )
265
262
266
263
267
- @pytest .mark .usefixtures
268
264
def test_upd_book (readarr_client : ReadarrAPI ):
269
265
book = readarr_client .get_book ()
266
+ editions = readarr_client .get_edition (book [0 ]["id" ])
270
267
271
- data = readarr_client .get_edition ( id_ = book [0 ][ "id" ] )
268
+ data = readarr_client .upd_book ( book = book [0 ], editions = editions )
272
269
assert isinstance (data , dict )
273
270
274
271
275
- @pytest .mark .usefixtures
276
- def test_upd_book (readarr_client : ReadarrAPI ):
272
+ def test_get_edition (readarr_client : ReadarrAPI ):
277
273
book = readarr_client .get_book ()
278
274
279
- data = readarr_client .upd_book (id_ = book [0 ]["id" ], data = book [ 0 ])
280
- assert isinstance (data , dict )
275
+ data = readarr_client .get_edition (id_ = book [0 ]["id" ])
276
+ assert isinstance (data , list )
281
277
282
278
283
279
def test_upd_book_monitor (readarr_client : ReadarrAPI ):
@@ -290,7 +286,6 @@ def test_upd_book_monitor(readarr_client: ReadarrAPI):
290
286
assert data [0 ]["monitored" ] == False
291
287
292
288
293
- @pytest .mark .usefixtures
294
289
def test_add_author (readarr_client : ReadarrAPI ):
295
290
qual_profile = readarr_client .get_quality_profile ()
296
291
meta_profile = readarr_client .get_metadata_profile ()
@@ -312,7 +307,6 @@ def test_add_author(readarr_client: ReadarrAPI):
312
307
assert isinstance (data , dict )
313
308
314
309
315
- @pytest .mark .usefixtures
316
310
def test_upd_author (readarr_client : ReadarrAPI ):
317
311
author = readarr_client .get_author ()
318
312
author [0 ]["monitored" ] = True
@@ -322,7 +316,6 @@ def test_upd_author(readarr_client: ReadarrAPI):
322
316
assert data ["monitored" ] == True
323
317
324
318
325
- @pytest .mark .usefixtures
326
319
def test_get_author (readarr_client : ReadarrAPI ):
327
320
data = readarr_client .get_author ()
328
321
assert isinstance (data , list )
@@ -331,7 +324,6 @@ def test_get_author(readarr_client: ReadarrAPI):
331
324
assert isinstance (data , dict )
332
325
333
326
334
- @pytest .mark .usefixtures
335
327
def test_get_metadata_profile (readarr_client : ReadarrAPI ):
336
328
data = readarr_client .get_metadata_profile ()
337
329
assert isinstance (data , list )
@@ -340,7 +332,6 @@ def test_get_metadata_profile(readarr_client: ReadarrAPI):
340
332
assert isinstance (data , dict )
341
333
342
334
343
- @pytest .mark .usefixtures
344
335
def test_get_delay_profile (readarr_client : ReadarrAPI ):
345
336
data = readarr_client .get_delay_profile ()
346
337
assert isinstance (data , list )
@@ -349,7 +340,6 @@ def test_get_delay_profile(readarr_client: ReadarrAPI):
349
340
assert isinstance (data , dict )
350
341
351
342
352
- @pytest .mark .usefixtures
353
343
def test_get_release_profile (readarr_client : ReadarrAPI ):
354
344
data = readarr_client .get_release_profile ()
355
345
assert isinstance (data , list )
0 commit comments