Skip to content

Commit 63ebf7c

Browse files
committed
updated tests
1 parent 7ff9de6 commit 63ebf7c

9 files changed

+1085
-145
lines changed

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

Lines changed: 12 additions & 2 deletions
Large diffs are not rendered by default.

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

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
{
2-
"armor": {
3-
"ac_add_dexmod": false,
4-
"ac_base": 17,
5-
"ac_cap_dexmod": null,
6-
"ac_display": "17",
7-
"category": "heavy",
8-
"document": "http://localhost:8000/v2/documents/srd/",
9-
"grants_stealth_disadvantage": true,
10-
"key": "srd_splint",
11-
"name": "Splint",
12-
"strength_score_required": 15,
13-
"url": "http://localhost:8000/v2/armor/srd_splint/"
14-
},
2+
"armor": "http://localhost:8000/v2/armor/srd_splint/",
153
"armor_class": 0,
164
"category": "http://localhost:8000/v2/itemcategories/armor/",
175
"cost": "200.00",

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

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -22,39 +22,6 @@
2222
"requires_attunement": false,
2323
"size": "http://localhost:8000/v2/sizes/tiny/",
2424
"url": "http://localhost:8000/v2/items/srd_shortsword/",
25-
"weapon": {
26-
"damage_dice": "1d6",
27-
"damage_type": "http://localhost:8000/v2/damagetypes/slashing/",
28-
"distance_unit": "feet",
29-
"document": "http://localhost:8000/v2/documents/srd/",
30-
"is_finesse": true,
31-
"is_heavy": false,
32-
"is_improvised": false,
33-
"is_lance": false,
34-
"is_light": true,
35-
"is_martial": true,
36-
"is_melee": true,
37-
"is_net": false,
38-
"is_reach": false,
39-
"is_simple": false,
40-
"is_thrown": false,
41-
"is_two_handed": false,
42-
"is_versatile": false,
43-
"key": "srd_shortsword",
44-
"long_range": 0.0,
45-
"name": "Shortsword",
46-
"properties": [
47-
"finesse",
48-
"light"
49-
],
50-
"range": 0.0,
51-
"range_melee": 5.0,
52-
"ranged_attack_possible": false,
53-
"reach": 5.0,
54-
"requires_ammunition": false,
55-
"requires_loading": false,
56-
"url": "http://localhost:8000/v2/weapons/srd_shortsword/",
57-
"versatile_dice": "0"
58-
},
25+
"weapon": "http://localhost:8000/v2/weapons/srd_shortsword/",
5926
"weight": "2.000"
6027
}

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

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -22,40 +22,6 @@
2222
"requires_attunement": false,
2323
"size": "http://localhost:8000/v2/sizes/tiny/",
2424
"url": "http://localhost:8000/v2/items/srd_longbow/",
25-
"weapon": {
26-
"damage_dice": "1d8",
27-
"damage_type": "http://localhost:8000/v2/damagetypes/piercing/",
28-
"distance_unit": "feet",
29-
"document": "http://localhost:8000/v2/documents/srd/",
30-
"is_finesse": false,
31-
"is_heavy": true,
32-
"is_improvised": false,
33-
"is_lance": false,
34-
"is_light": false,
35-
"is_martial": true,
36-
"is_melee": false,
37-
"is_net": false,
38-
"is_reach": false,
39-
"is_simple": false,
40-
"is_thrown": false,
41-
"is_two_handed": true,
42-
"is_versatile": false,
43-
"key": "srd_longbow",
44-
"long_range": 600.0,
45-
"name": "Longbow",
46-
"properties": [
47-
"ammuntion (range 150.0/600.0)",
48-
"heavy",
49-
"two-handed"
50-
],
51-
"range": 150.0,
52-
"range_melee": 5.0,
53-
"ranged_attack_possible": true,
54-
"reach": 5.0,
55-
"requires_ammunition": true,
56-
"requires_loading": false,
57-
"url": "http://localhost:8000/v2/weapons/srd_longbow/",
58-
"versatile_dice": "0"
59-
},
25+
"weapon": "http://localhost:8000/v2/weapons/srd_longbow/",
6026
"weight": "2.000"
6127
}

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

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -107,39 +107,7 @@
107107
"requires_attunement": false,
108108
"size": "http://localhost:8000/v2/sizes/tiny/",
109109
"url": "http://localhost:8000/v2/items/srd_staff/",
110-
"weapon": {
111-
"damage_dice": "1d6",
112-
"damage_type": "http://localhost:8000/v2/damagetypes/bludgeoning/",
113-
"distance_unit": "feet",
114-
"document": "http://localhost:8000/v2/documents/srd/",
115-
"is_finesse": false,
116-
"is_heavy": false,
117-
"is_improvised": false,
118-
"is_lance": false,
119-
"is_light": false,
120-
"is_martial": false,
121-
"is_melee": true,
122-
"is_net": false,
123-
"is_reach": false,
124-
"is_simple": true,
125-
"is_thrown": false,
126-
"is_two_handed": false,
127-
"is_versatile": true,
128-
"key": "srd_quarterstaff",
129-
"long_range": 0.0,
130-
"name": "Quarterstaff",
131-
"properties": [
132-
"versatile (1d8)"
133-
],
134-
"range": 0.0,
135-
"range_melee": 5.0,
136-
"ranged_attack_possible": false,
137-
"reach": 5.0,
138-
"requires_ammunition": false,
139-
"requires_loading": false,
140-
"url": "http://localhost:8000/v2/weapons/srd_quarterstaff/",
141-
"versatile_dice": "1d8"
142-
},
110+
"weapon": "http://localhost:8000/v2/weapons/srd_quarterstaff/",
143111
"weight": "4.000"
144112
},
145113
{
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"desc": "Typical speakers are demons.",
3-
"document": "srd",
3+
"document": "http://localhost:8000/v2/documents/srd/",
44
"is_exotic": true,
55
"is_secret": false,
66
"key": "abyssal",
77
"name": "Abyssal",
8-
"script_language": "infernal"
8+
"script_language": "http://localhost:8000/v2/languages/infernal/",
9+
"url": "http://localhost:8000/v2/languages/abyssal/"
910
}

0 commit comments

Comments
 (0)