@@ -323,12 +323,14 @@ def test_get_pet_types(self, response_mock):
323
323
# Game Data API tests
324
324
# ---------------------------------------------------------------------------------------------
325
325
326
+ # Connected Realm API
327
+
326
328
def test_get_connected_realms (self , response_mock ):
327
329
self .authorized_api .get_connected_realms ('us' , 'dynamic-us' )
328
330
params = copy .deepcopy (self .params )
329
331
params ['namespace' ] = 'dynamic-us'
330
332
response_mock .assert_called_with (
331
- 'https://us.api.blizzard.com/data/wow/connected-realm/' , params = params )
333
+ 'https://us.api.blizzard.com/data/wow/connected-realm/index ' , params = params )
332
334
333
335
def test_get_connected_realm (self , response_mock ):
334
336
self .authorized_api .get_connected_realm ('us' , 'dynamic-us' , 1 )
@@ -337,23 +339,23 @@ def test_get_connected_realm(self, response_mock):
337
339
response_mock .assert_called_with (
338
340
'https://us.api.blizzard.com/data/wow/connected-realm/1' , params = params )
339
341
340
- def test_get_mythic_keystone_leaderboards (self , response_mock ):
341
- self .authorized_api .get_mythic_keystone_leaderboards ('us' , 'dynamic-us' , 1 )
342
+ # Mythic Keystone Affix API
343
+
344
+ def test_get_mythic_keystone_affixes (self , response_mock ):
345
+ self .authorized_api .get_mythic_keystone_affixes ('us' , 'dynamic-us' )
342
346
params = copy .deepcopy (self .params )
343
347
params ['namespace' ] = 'dynamic-us'
344
348
response_mock .assert_called_with (
345
- 'https://us.api.blizzard.com/data/wow/connected-realm/1/mythic-leaderboard/' ,
346
- params = params
347
- )
349
+ 'https://us.api.blizzard.com/data/wow/keystone-affix/index' , params = params )
348
350
349
- def test_get_mythic_keystone_leaderboard (self , response_mock ):
350
- self .authorized_api .get_mythic_keystone_leaderboard ('us' , 'dynamic-us' , 1 , 2 , 3 )
351
+ def test_get_mythic_keystone_affix (self , response_mock ):
352
+ self .authorized_api .get_mythic_keystone_affix ('us' , 'dynamic-us' , 3 )
351
353
params = copy .deepcopy (self .params )
352
354
params ['namespace' ] = 'dynamic-us'
353
355
response_mock .assert_called_with (
354
- 'https://us.api.blizzard.com/data/wow/connected-realm/1/mythic-leaderboard/2/period/ 3' ,
355
- params = params
356
- )
356
+ 'https://us.api.blizzard.com/data/wow/keystone-affix/ 3' , params = params )
357
+
358
+ # Mythic Raid Leaderboard API
357
359
358
360
def test_get_mythic_raid_leaderboard (self , response_mock ):
359
361
self .authorized_api .get_mythic_raid_leaderboard ('us' , 'dynamic-us' , 'uldir' , 'horde' )
@@ -364,21 +366,85 @@ def test_get_mythic_raid_leaderboard(self, response_mock):
364
366
params = params
365
367
)
366
368
367
- def test_get_mythic_challenge_modes (self , response_mock ):
368
- self .authorized_api .get_mythic_challenge_modes ('us' , 'dynamic-us' )
369
+ # Mythic Keystone Dungeon API
370
+
371
+ def test_get_mythic_keystone_dungeons (self , response_mock ):
372
+ self .authorized_api .get_mythic_keystone_dungeons ('us' , 'dynamic-us' )
373
+ params = copy .deepcopy (self .params )
374
+ params ['namespace' ] = 'dynamic-us'
375
+ response_mock .assert_called_with (
376
+ 'https://us.api.blizzard.com/data/wow/mythic-keystone/dungeon/index' , params = params )
377
+
378
+ def test_get_mythic_keystone_dungeon (self , response_mock ):
379
+ self .authorized_api .get_mythic_keystone_dungeon ('us' , 'dynamic-us' , 5 )
380
+ params = copy .deepcopy (self .params )
381
+ params ['namespace' ] = 'dynamic-us'
382
+ response_mock .assert_called_with (
383
+ 'https://us.api.blizzard.com/data/wow/mythic-keystone/dungeon/5' , params = params )
384
+
385
+ def test_get_mythic_keystones (self , response_mock ):
386
+ self .authorized_api .get_mythic_keystones ('us' , 'dynamic-us' )
387
+ params = copy .deepcopy (self .params )
388
+ params ['namespace' ] = 'dynamic-us'
389
+ response_mock .assert_called_with (
390
+ 'https://us.api.blizzard.com/data/wow/mythic-keystone/index' , params = params )
391
+
392
+ def test_get_mythic_keystone_periods (self , response_mock ):
393
+ self .authorized_api .get_mythic_keystone_periods ('us' , 'dynamic-us' )
394
+ params = copy .deepcopy (self .params )
395
+ params ['namespace' ] = 'dynamic-us'
396
+ response_mock .assert_called_with (
397
+ 'https://us.api.blizzard.com/data/wow/mythic-keystone/period/index' , params = params )
398
+
399
+ def test_get_mythic_keystone_period (self , response_mock ):
400
+ self .authorized_api .get_mythic_keystone_period ('us' , 'dynamic-us' , 641 )
401
+ params = copy .deepcopy (self .params )
402
+ params ['namespace' ] = 'dynamic-us'
403
+ response_mock .assert_called_with (
404
+ 'https://us.api.blizzard.com/data/wow/mythic-keystone/period/641' , params = params )
405
+
406
+ def test_get_mythic_keystone_seasons (self , response_mock ):
407
+ self .authorized_api .get_mythic_keystone_seasons ('us' , 'dynamic-us' )
408
+ params = copy .deepcopy (self .params )
409
+ params ['namespace' ] = 'dynamic-us'
410
+ response_mock .assert_called_with (
411
+ 'https://us.api.blizzard.com/data/wow/mythic-keystone/season/index' , params = params )
412
+
413
+ def test_get_mythic_keystone_season (self , response_mock ):
414
+ self .authorized_api .get_mythic_keystone_season ('us' , 'dynamic-us' , 1 )
415
+ params = copy .deepcopy (self .params )
416
+ params ['namespace' ] = 'dynamic-us'
417
+ response_mock .assert_called_with (
418
+ 'https://us.api.blizzard.com/data/wow/mythic-keystone/season/1' , params = params )
419
+
420
+ # Mythic Keystone Leaderboard API
421
+
422
+ def test_get_mythic_keystone_leaderboards (self , response_mock ):
423
+ self .authorized_api .get_mythic_keystone_leaderboards ('us' , 'dynamic-us' , 1 )
424
+ params = copy .deepcopy (self .params )
425
+ params ['namespace' ] = 'dynamic-us'
426
+ response_mock .assert_called_with (
427
+ 'https://us.api.blizzard.com/data/wow/connected-realm/1/mythic-leaderboard/index' ,
428
+ params = params
429
+ )
430
+
431
+ def test_get_mythic_keystone_leaderboard (self , response_mock ):
432
+ self .authorized_api .get_mythic_keystone_leaderboard ('us' , 'dynamic-us' , 1 , 2 , 3 )
369
433
params = copy .deepcopy (self .params )
370
434
params ['namespace' ] = 'dynamic-us'
371
435
response_mock .assert_called_with (
372
- 'https://us.api.blizzard.com/data/wow/mythic-challenge-mode/ ' ,
436
+ 'https://us.api.blizzard.com/data/wow/connected-realm/1/ mythic-leaderboard/2/period/3 ' ,
373
437
params = params
374
438
)
375
439
440
+ # Playable Class API
441
+
376
442
def test_get_playable_classes (self , response_mock ):
377
443
self .authorized_api .get_playable_classes ('us' , 'static-us' )
378
444
params = copy .deepcopy (self .params )
379
445
params ['namespace' ] = 'static-us'
380
446
response_mock .assert_called_with (
381
- 'https://us.api.blizzard.com/data/wow/playable-class/' ,
447
+ 'https://us.api.blizzard.com/data/wow/playable-class/index ' ,
382
448
params = params
383
449
)
384
450
@@ -391,12 +457,23 @@ def test_get_playable_class(self, response_mock):
391
457
params = params
392
458
)
393
459
460
+ def test_get_playable_class_pvp_talent_slots (self , response_mock ):
461
+ self .authorized_api .get_playable_class_pvp_talent_slots ('us' , 'static-us' , 7 )
462
+ params = copy .deepcopy (self .params )
463
+ params ['namespace' ] = 'static-us'
464
+ response_mock .assert_called_with (
465
+ 'https://us.api.blizzard.com/data/wow/playable-class/7/pvp-talent-slots' ,
466
+ params = params
467
+ )
468
+
469
+ # Playable Specialization API
470
+
394
471
def test_get_playable_specializations (self , response_mock ):
395
472
self .authorized_api .get_playable_specializations ('us' , 'static-us' )
396
473
params = copy .deepcopy (self .params )
397
474
params ['namespace' ] = 'static-us'
398
475
response_mock .assert_called_with (
399
- 'https://us.api.blizzard.com/data/wow/playable-specialization/' ,
476
+ 'https://us.api.blizzard.com/data/wow/playable-specialization/index ' ,
400
477
params = params
401
478
)
402
479
@@ -409,12 +486,54 @@ def test_get_playable_specialization(self, response_mock):
409
486
params = params
410
487
)
411
488
489
+ # Power Type API
490
+
491
+ def test_get_power_types (self , response_mock ):
492
+ self .authorized_api .get_power_types ('us' , 'static-us' )
493
+ params = copy .deepcopy (self .params )
494
+ params ['namespace' ] = 'static-us'
495
+ response_mock .assert_called_with (
496
+ 'https://us.api.blizzard.com/data/wow/power-type/index' ,
497
+ params = params
498
+ )
499
+
500
+ def test_get_power_type (self , response_mock ):
501
+ self .authorized_api .get_power_type ('us' , 'static-us' , 0 )
502
+ params = copy .deepcopy (self .params )
503
+ params ['namespace' ] = 'static-us'
504
+ response_mock .assert_called_with (
505
+ 'https://us.api.blizzard.com/data/wow/power-type/0' ,
506
+ params = params
507
+ )
508
+
509
+ # Playable Race API
510
+
511
+ def test_get_races (self , response_mock ):
512
+ self .authorized_api .get_races ('us' , 'static-us' )
513
+ params = copy .deepcopy (self .params )
514
+ params ['namespace' ] = 'static-us'
515
+ response_mock .assert_called_with (
516
+ 'https://us.api.blizzard.com/data/wow/race/index' ,
517
+ params = params
518
+ )
519
+
520
+ def test_get_race (self , response_mock ):
521
+ self .authorized_api .get_race ('us' , 'static-us' , 2 )
522
+ params = copy .deepcopy (self .params )
523
+ params ['namespace' ] = 'static-us'
524
+ response_mock .assert_called_with (
525
+ 'https://us.api.blizzard.com/data/wow/race/2' ,
526
+ params = params
527
+ )
528
+
529
+ # Realm API
530
+
412
531
def test_get_realms (self , response_mock ):
413
532
self .authorized_api .get_realms ('us' , 'dynamic-us' )
414
533
params = copy .deepcopy (self .params )
415
534
params ['namespace' ] = 'dynamic-us'
416
535
response_mock .assert_called_with (
417
- 'https://us.api.blizzard.com/data/wow/realm/' ,
536
+ 'https://us.api.blizzard.com/data/wow/realm/index ' ,
418
537
params = params
419
538
)
420
539
@@ -427,12 +546,14 @@ def test_get_realm(self, response_mock):
427
546
params = params
428
547
)
429
548
549
+ # Region API
550
+
430
551
def test_get_regions (self , response_mock ):
431
552
self .authorized_api .get_regions ('us' , 'dynamic-us' )
432
553
params = copy .deepcopy (self .params )
433
554
params ['namespace' ] = 'dynamic-us'
434
555
response_mock .assert_called_with (
435
- 'https://us.api.blizzard.com/data/wow/region/' ,
556
+ 'https://us.api.blizzard.com/data/wow/region/index ' ,
436
557
params = params
437
558
)
438
559
@@ -445,9 +566,11 @@ def test_get_region(self, response_mock):
445
566
params = params
446
567
)
447
568
569
+ # WoW Token API
570
+
448
571
def test_get_token (self , response_mock ):
449
572
self .authorized_api .get_token ('us' , 'dynamic-us' )
450
573
params = copy .deepcopy (self .params )
451
574
params ['namespace' ] = 'dynamic-us'
452
575
response_mock .assert_called_with (
453
- 'https://us.api.blizzard.com/data/wow/token/' , params = params )
576
+ 'https://us.api.blizzard.com/data/wow/token/index ' , params = params )
0 commit comments