Skip to content

Commit 7f31aac

Browse files
committed
updated tests - add 'traits' to expected res for /creatures
1 parent d956978 commit 7f31aac

4 files changed

+74
-0
lines changed

api_v2/tests/responses/TestObjects.test_creature_ancient_example.approved.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,16 @@
249249
"walk": 40.0
250250
},
251251
"subcategory": "Dragons, Chromatic",
252+
"traits": [
253+
{
254+
"desc": "If the dragon fails a saving throw, it can choose to succeed instead.",
255+
"key": "srd_ancient-red-dragon_legendary-resistance-3day",
256+
"name": "Legendary Resistance (3/Day)",
257+
"parent": "http://localhost:8000/v2/creatures/srd_ancient-red-dragon/",
258+
"type": null,
259+
"url": "http://localhost:8000/v2/creaturetraits/srd_ancient-red-dragon_legendary-resistance-3day/"
260+
}
261+
],
252262
"tremorsense_range": null,
253263
"truesight_range": null,
254264
"type": "http://localhost:8000/v2/creaturetypes/dragon/",

api_v2/tests/responses/TestObjects.test_creature_goblin_example.approved.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,16 @@
265265
"walk": 30.0
266266
},
267267
"subcategory": null,
268+
"traits": [
269+
{
270+
"desc": "The goblin can take the Disengage or Hide action as a bonus action on each of its turns.",
271+
"key": "srd_goblin_nimble-escape",
272+
"name": "Nimble Escape",
273+
"parent": "http://localhost:8000/v2/creatures/srd_goblin/",
274+
"type": null,
275+
"url": "http://localhost:8000/v2/creaturetraits/srd_goblin_nimble-escape/"
276+
}
277+
],
268278
"tremorsense_range": null,
269279
"truesight_range": null,
270280
"type": "http://localhost:8000/v2/creaturetypes/humanoid/",

api_v2/tests/responses/TestObjects.test_creature_guard_example.approved.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@
363363
"walk": 30.0
364364
},
365365
"subcategory": null,
366+
"traits": [],
366367
"tremorsense_range": null,
367368
"truesight_range": null,
368369
"type": "http://localhost:8000/v2/creaturetypes/humanoid/",

api_v2/tests/responses/TestObjects.test_creatureset_example.approved.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@
150150
"walk": 50.0
151151
},
152152
"subcategory": null,
153+
"traits": [],
153154
"tremorsense_range": null,
154155
"truesight_range": null,
155156
"type": "http://localhost:8000/v2/creaturetypes/beast/",
@@ -271,6 +272,7 @@
271272
"walk": 0.0
272273
},
273274
"subcategory": null,
275+
"traits": [],
274276
"tremorsense_range": null,
275277
"truesight_range": null,
276278
"type": "http://localhost:8000/v2/creaturetypes/beast/",
@@ -416,6 +418,7 @@
416418
"walk": 40.0
417419
},
418420
"subcategory": null,
421+
"traits": [],
419422
"tremorsense_range": null,
420423
"truesight_range": null,
421424
"type": "http://localhost:8000/v2/creaturetypes/beast/",
@@ -593,6 +596,16 @@
593596
"walk": 40.0
594597
},
595598
"subcategory": null,
599+
"traits": [
600+
{
601+
"desc": "If the elephant moves at least 20 ft. straight toward a creature and then hits it with a gore attack on the same turn, that target must succeed on a DC 12 Strength saving throw or be knocked prone. If the target is prone, the elephant can make one stomp attack against it as a bonus action.",
602+
"key": "srd_elephant_trampling-charge",
603+
"name": "Trampling Charge",
604+
"parent": "http://localhost:8000/v2/creatures/srd_elephant/",
605+
"type": null,
606+
"url": "http://localhost:8000/v2/creaturetraits/srd_elephant_trampling-charge/"
607+
}
608+
],
596609
"tremorsense_range": null,
597610
"truesight_range": null,
598611
"type": "http://localhost:8000/v2/creaturetypes/beast/",
@@ -758,6 +771,16 @@
758771
"walk": 40.0
759772
},
760773
"subcategory": null,
774+
"traits": [
775+
{
776+
"desc": "The mastiff has advantage on Wisdom (Perception) checks that rely on hearing or smell.",
777+
"key": "srd_mastiff_keen-hearing-and-smell",
778+
"name": "Keen Hearing and Smell",
779+
"parent": "http://localhost:8000/v2/creatures/srd_mastiff/",
780+
"type": null,
781+
"url": "http://localhost:8000/v2/creaturetraits/srd_mastiff_keen-hearing-and-smell/"
782+
}
783+
],
761784
"tremorsense_range": null,
762785
"truesight_range": null,
763786
"type": "http://localhost:8000/v2/creaturetypes/beast/",
@@ -923,6 +946,24 @@
923946
"walk": 40.0
924947
},
925948
"subcategory": null,
949+
"traits": [
950+
{
951+
"desc": "The mule is considered to be a Large animal for the purpose of determining its carrying capacity.",
952+
"key": "srd_mule_beast-of-burden",
953+
"name": "Beast of Burden",
954+
"parent": "http://localhost:8000/v2/creatures/srd_mule/",
955+
"type": null,
956+
"url": "http://localhost:8000/v2/creaturetraits/srd_mule_beast-of-burden/"
957+
},
958+
{
959+
"desc": "The mule has advantage on Strength and Dexterity saving throws made against effects that would knock it prone.",
960+
"key": "srd_mule_sure-footed",
961+
"name": "Sure-Footed",
962+
"parent": "http://localhost:8000/v2/creatures/srd_mule/",
963+
"type": null,
964+
"url": "http://localhost:8000/v2/creaturetraits/srd_mule_sure-footed/"
965+
}
966+
],
926967
"tremorsense_range": null,
927968
"truesight_range": null,
928969
"type": "http://localhost:8000/v2/creaturetypes/beast/",
@@ -1078,6 +1119,7 @@
10781119
"walk": 40.0
10791120
},
10801121
"subcategory": null,
1122+
"traits": [],
10811123
"tremorsense_range": null,
10821124
"truesight_range": null,
10831125
"type": "http://localhost:8000/v2/creaturetypes/beast/",
@@ -1233,6 +1275,7 @@
12331275
"walk": 60.0
12341276
},
12351277
"subcategory": null,
1278+
"traits": [],
12361279
"tremorsense_range": null,
12371280
"truesight_range": null,
12381281
"type": "http://localhost:8000/v2/creaturetypes/beast/",
@@ -1378,6 +1421,16 @@
13781421
"walk": 60.0
13791422
},
13801423
"subcategory": null,
1424+
"traits": [
1425+
{
1426+
"desc": "If the horse moves at least 20 ft. straight toward a creature and then hits it with a hooves attack on the same turn, that target must succeed on a DC 14 Strength saving throw or be knocked prone. If the target is prone, the horse can make another attack with its hooves against it as a bonus action.",
1427+
"key": "srd_warhorse_trampling-charge",
1428+
"name": "Trampling Charge",
1429+
"parent": "http://localhost:8000/v2/creatures/srd_warhorse/",
1430+
"type": null,
1431+
"url": "http://localhost:8000/v2/creaturetraits/srd_warhorse_trampling-charge/"
1432+
}
1433+
],
13811434
"tremorsense_range": null,
13821435
"truesight_range": null,
13831436
"type": "http://localhost:8000/v2/creaturetypes/beast/",

0 commit comments

Comments
 (0)