Skip to content

Commit 2694e48

Browse files
Merge pull request open5e#635 from open5e/633-tests-were-failing-due-to-many-recent-changes
633 tests were failing due to many recent changes
2 parents ce558ce + 24fbb25 commit 2694e48

5 files changed

+1148
-834
lines changed

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

Lines changed: 105 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -3,149 +3,182 @@
33
"document": "http://localhost:8000/v2/documents/srd/",
44
"features": [
55
{
6-
"columnitems": [],
76
"desc": "When you reach 4th level, and again at 8th, 12th, 16th, and 19th level, you can increase one ability score of your choice by 2, or you can increase two ability scores of your choice by 1. As normal, you can\u2019t increase an ability score above 20 using this feature.",
8-
"featureitems": [
7+
"feature_type": "CLASS_FEATURE",
8+
"gained_at": [
99
{
10+
"detail": null,
1011
"level": 12
1112
},
1213
{
14+
"detail": null,
1315
"level": 16
1416
},
1517
{
18+
"detail": null,
1619
"level": 19
1720
},
1821
{
22+
"detail": null,
1923
"level": 4
2024
},
2125
{
26+
"detail": null,
2227
"level": 8
2328
}
2429
],
2530
"key": "srd_barbarian_ability-score-improvement",
26-
"name": "Ability Score Improvement"
31+
"name": "Ability Score Improvement",
32+
"table_data": []
2733
},
2834
{
29-
"columnitems": [],
3035
"desc": "Beginning at 9th level, you can roll one additional weapon damage die when determining the extra damage for a critical hit with a melee attack.\r\n\r\nThis increases to two additional dice at 13th level and three additional dice at 17th level.",
31-
"featureitems": [
36+
"feature_type": "CLASS_FEATURE",
37+
"gained_at": [
3238
{
39+
"detail": null,
3340
"level": 13
3441
},
3542
{
43+
"detail": null,
3644
"level": 17
3745
},
3846
{
47+
"detail": null,
3948
"level": 9
4049
}
4150
],
4251
"key": "srd_barbarian_brutal-critical",
43-
"name": "Brutal Critical"
52+
"name": "Brutal Critical",
53+
"table_data": []
4454
},
4555
{
46-
"columnitems": [],
4756
"desc": "At 2nd level, you gain an uncanny sense of when things nearby aren\u2019t as they should be, giving you an edge when you dodge away from danger.\r\n\r\nYou have advantage on Dexterity saving throws against effects that you can see, such as traps and spells. To gain this benefit, you can\u2019t be blinded, deafened, or incapacitated.",
48-
"featureitems": [
57+
"feature_type": "CLASS_FEATURE",
58+
"gained_at": [
4959
{
60+
"detail": null,
5061
"level": 2
5162
}
5263
],
5364
"key": "srd_barbarian_danger-sense",
54-
"name": "Danger Sense"
65+
"name": "Danger Sense",
66+
"table_data": []
5567
},
5668
{
57-
"columnitems": [],
5869
"desc": "You start with the following equipment, in addition to the equipment granted by your background:\r\n* (*a*) a greataxe or (*b*) any martial melee weapon\r\n* (*a*) two handaxes or (*b*) any simple weapon\r\n* An explorer\u2019s pack and four javelins",
59-
"featureitems": [],
70+
"feature_type": "STARTING_EQUIPMENT",
71+
"gained_at": [],
6072
"key": "srd_barbarian_equipment",
61-
"name": "Equipment"
73+
"name": "Equipment",
74+
"table_data": []
6275
},
6376
{
64-
"columnitems": [],
6577
"desc": "Beginning at 5th level, you can attack twice, instead of once, whenever you take the Attack action on your turn.",
66-
"featureitems": [
78+
"feature_type": "CLASS_FEATURE",
79+
"gained_at": [
6780
{
81+
"detail": null,
6882
"level": 5
6983
}
7084
],
7185
"key": "srd_barbarian_extra-attack",
72-
"name": "Extra Attack"
86+
"name": "Extra Attack",
87+
"table_data": []
7388
},
7489
{
75-
"columnitems": [],
7690
"desc": "Starting at 5th level, your speed increases by 10 feet while you aren\u2019t wearing heavy armor.",
77-
"featureitems": [
91+
"feature_type": "CLASS_FEATURE",
92+
"gained_at": [
7893
{
94+
"detail": null,
7995
"level": 5
8096
}
8197
],
8298
"key": "srd_barbarian_fast-movement",
83-
"name": "Fast Movement"
99+
"name": "Fast Movement",
100+
"table_data": []
84101
},
85102
{
86-
"columnitems": [],
87103
"desc": "By 7th level, your instincts are so honed that you have advantage on initiative rolls.\r\n\r\nAdditionally, if you are surprised at the beginning of combat and aren\u2019t incapacitated, you can act normally on your first turn, but only if you enter your rage before doing anything else on that turn.",
88-
"featureitems": [
104+
"feature_type": "CLASS_FEATURE",
105+
"gained_at": [
89106
{
107+
"detail": null,
90108
"level": 7
91109
}
92110
],
93111
"key": "srd_barbarian_feral-instinct",
94-
"name": "Feral Instinct"
112+
"name": "Feral Instinct",
113+
"table_data": []
95114
},
96115
{
97-
"columnitems": [],
98116
"desc": "Beginning at 18th level, if your total for a Strength check is less than your Strength score, you can use that score in place of the total.",
99-
"featureitems": [
117+
"feature_type": "CLASS_FEATURE",
118+
"gained_at": [
100119
{
120+
"detail": null,
101121
"level": 18
102122
}
103123
],
104124
"key": "srd_barbarian_indomitable-might",
105-
"name": "Indomitable Might"
125+
"name": "Indomitable Might",
126+
"table_data": []
106127
},
107128
{
108-
"columnitems": [],
109129
"desc": "Beginning at 15th level, your rage is so fierce that it ends early only if you fall unconscious or if you choose to end it.",
110-
"featureitems": [
130+
"feature_type": "CLASS_FEATURE",
131+
"gained_at": [
111132
{
133+
"detail": null,
112134
"level": 15
113135
}
114136
],
115137
"key": "srd_barbarian_persistent-rage",
116-
"name": "Persistent Rage"
138+
"name": "Persistent Rage",
139+
"table_data": []
117140
},
118141
{
119-
"columnitems": [],
120142
"desc": "At 20th level, you embody the power of the wilds. Your Strength and Constitution scores increase by 4. Your maximum for those scores is now 24.",
121-
"featureitems": [
143+
"feature_type": "CLASS_FEATURE",
144+
"gained_at": [
122145
{
146+
"detail": null,
123147
"level": 20
124148
}
125149
],
126150
"key": "srd_barbarian_primal-champion",
127-
"name": "Primal Champion"
151+
"name": "Primal Champion",
152+
"table_data": []
128153
},
129154
{
130-
"columnitems": [],
131155
"desc": "At 3rd level, you choose a path that shapes the nature of your rage. Choose the Path of the Berserker or the Path of the Totem Warrior, both detailed at the end of the class description. Your choice grants you features at 3rd level and again at 6th, 10th, and 14th levels.",
132-
"featureitems": [
156+
"feature_type": "CLASS_FEATURE",
157+
"gained_at": [
133158
{
159+
"detail": null,
134160
"level": 3
135161
}
136162
],
137163
"key": "srd_barbarian_primal-path",
138-
"name": "Primal Path"
164+
"name": "Primal Path",
165+
"table_data": []
139166
},
140167
{
141-
"columnitems": [],
142168
"desc": "**Armor:** Light armor, medium armor, shields\r\n**Weapons:** Simple weapons, martial weapons\r\n**Tools:** None\r\n**Saving Throws:** Strength, Constitution\r\n**Skills:** Choose two from Animal Handling, Athletics, Intimidation, Nature, Perception, and Survival",
143-
"featureitems": [],
169+
"feature_type": "PROFICIENCIES",
170+
"gained_at": [],
144171
"key": "srd_barbarian_proficiencies",
145-
"name": "Proficiencies"
172+
"name": "Proficiencies",
173+
"table_data": []
146174
},
147175
{
148-
"columnitems": [
176+
"desc": "[Column data]",
177+
"feature_type": "PROFICIENCY_BONUS",
178+
"gained_at": [],
179+
"key": "srd_barbarian_proficiency-bonus",
180+
"name": "Proficiency Bonus",
181+
"table_data": [
149182
{
150183
"column_value": "+2",
151184
"level": 1
@@ -226,25 +259,28 @@
226259
"column_value": "+4",
227260
"level": 9
228261
}
229-
],
230-
"desc": "[Column data]",
231-
"featureitems": [],
232-
"key": "srd_barbarian_proficiency-bonus",
233-
"name": "Proficiency Bonus"
262+
]
234263
},
235264
{
236-
"columnitems": [],
237265
"desc": "In battle, you fight with primal ferocity. On your turn, you can enter a rage as a bonus action.\r\n\r\nWhile raging, you gain the following benefits if you aren't wearing heavy armor:\r\n\r\n* You have advantage on Strength checks and Strength saving throws.\r\n* When you make a melee weapon attack using Strength, you gain a bonus to the damage roll that increases as you gain levels as a barbarian, as shown in the Rage Damage column of the Barbarian table.\r\n* You have resistance to bludgeoning, piercing, and slashing damage. \r\n\r\nIf you are able to cast spells, you can't cast them or concentrate on them while raging.\r\n\r\nYour rage lasts for 1 minute. It ends early if you are knocked unconscious or if your turn ends and you haven't attacked a hostile creature since your last turn or taken damage since then. You can also end your rage on your turn as a bonus action.\r\n\r\nOnce you have raged the number of times shown for your barbarian level in the Rages column of the Barbarian table, you must finish a long rest before you can rage again.",
238-
"featureitems": [
266+
"feature_type": "CLASS_FEATURE",
267+
"gained_at": [
239268
{
269+
"detail": null,
240270
"level": 1
241271
}
242272
],
243273
"key": "srd_barbarian_rage",
244-
"name": "Rage"
274+
"name": "Rage",
275+
"table_data": []
245276
},
246277
{
247-
"columnitems": [
278+
"desc": "[Column data]",
279+
"feature_type": "CLASS_FEATURE",
280+
"gained_at": [],
281+
"key": "srd_barbarian_rage-damage",
282+
"name": "Rage Damage",
283+
"table_data": [
248284
{
249285
"column_value": "+2",
250286
"level": 1
@@ -325,14 +361,15 @@
325361
"column_value": "+3",
326362
"level": 9
327363
}
328-
],
329-
"desc": "[Column data]",
330-
"featureitems": [],
331-
"key": "srd_barbarian_rage-damage",
332-
"name": "Rage Damage"
364+
]
333365
},
334366
{
335-
"columnitems": [
367+
"desc": "[Column data]",
368+
"feature_type": "CLASS_FEATURE",
369+
"gained_at": [],
370+
"key": "srd_barbarian_rages",
371+
"name": "Rages",
372+
"table_data": [
336373
{
337374
"column_value": "2",
338375
"level": 1
@@ -413,44 +450,46 @@
413450
"column_value": "4",
414451
"level": 9
415452
}
416-
],
417-
"desc": "[Column data]",
418-
"featureitems": [],
419-
"key": "srd_barbarian_rages",
420-
"name": "Rages"
453+
]
421454
},
422455
{
423-
"columnitems": [],
424456
"desc": "Starting at 2nd level, you can throw aside all concern for defense to attack with fierce desperation. When you make your first attack on your turn, you can decide to attack recklessly. Doing so gives you advantage on melee weapon attack rolls using Strength during this turn, but attack rolls against you have advantage until your next turn.",
425-
"featureitems": [
457+
"feature_type": "CLASS_FEATURE",
458+
"gained_at": [
426459
{
460+
"detail": null,
427461
"level": 2
428462
}
429463
],
430464
"key": "srd_barbarian_reckless-attack",
431-
"name": "Reckless Attack"
465+
"name": "Reckless Attack",
466+
"table_data": []
432467
},
433468
{
434-
"columnitems": [],
435469
"desc": "Starting at 11th level, your rage can keep you fighting despite grievous wounds. If you drop to 0 hit points while you\u2019re raging and don\u2019t die outright, you can make a DC 10 Constitution saving throw. If you succeed, you drop to 1 hit point instead.\r\n\r\nEach time you use this feature after the first, the DC increases by 5. When you finish a short or long rest, the DC resets to 10.",
436-
"featureitems": [
470+
"feature_type": "CLASS_FEATURE",
471+
"gained_at": [
437472
{
473+
"detail": null,
438474
"level": 11
439475
}
440476
],
441477
"key": "srd_barbarian_relentless-rage",
442-
"name": "Relentless Rage"
478+
"name": "Relentless Rage",
479+
"table_data": []
443480
},
444481
{
445-
"columnitems": [],
446482
"desc": "While you are not wearing any armor, your Armor Class equals 10 + your Dexterity modifier + your Constitution modifier. You can use a shield and still gain this benefit.",
447-
"featureitems": [
483+
"feature_type": "CLASS_FEATURE",
484+
"gained_at": [
448485
{
486+
"detail": null,
449487
"level": 1
450488
}
451489
],
452490
"key": "srd_barbarian_unarmored-defense",
453-
"name": "Unarmored Defense"
491+
"name": "Unarmored Defense",
492+
"table_data": []
454493
}
455494
],
456495
"hit_dice": "D12",

0 commit comments

Comments
 (0)