Skip to content

Commit c20d9f4

Browse files
committed
updated tests
1 parent 39bacb6 commit c20d9f4

File tree

3 files changed

+45
-63
lines changed

3 files changed

+45
-63
lines changed

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

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -61,34 +61,28 @@
6161
"url": "http://localhost:8000/v2/damagetypes/slashing/"
6262
},
6363
"distance_unit": "feet",
64-
"is_finesse": true,
65-
"is_heavy": false,
6664
"is_improvised": false,
67-
"is_lance": false,
68-
"is_light": true,
6965
"is_martial": true,
70-
"is_melee": true,
71-
"is_net": false,
72-
"is_reach": false,
7366
"is_simple": false,
74-
"is_thrown": false,
75-
"is_two_handed": false,
76-
"is_versatile": false,
7767
"key": "srd_shortsword",
78-
"long_range": 0.0,
7968
"name": "Shortsword",
8069
"properties": [
81-
"finesse",
82-
"light"
70+
{
71+
"detail": null,
72+
"property": {
73+
"name": "Finesse",
74+
"url": "http://localhost:8000/v2/weaponproperties/srd-2014_finesse-wp/"
75+
}
76+
},
77+
{
78+
"detail": null,
79+
"property": {
80+
"name": "Light",
81+
"url": "http://localhost:8000/v2/weaponproperties/srd-2014_light-wp/"
82+
}
83+
}
8384
],
84-
"range": 0.0,
85-
"range_melee": 5.0,
86-
"ranged_attack_possible": false,
87-
"reach": 5.0,
88-
"requires_ammunition": false,
89-
"requires_loading": false,
90-
"url": "http://localhost:8000/v2/weapons/srd_shortsword/",
91-
"versatile_dice": "0"
85+
"url": "http://localhost:8000/v2/weapons/srd_shortsword/"
9286
},
9387
"weight": "2.000",
9488
"weight_unit": "lb"

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

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -61,35 +61,28 @@
6161
"url": "http://localhost:8000/v2/damagetypes/piercing/"
6262
},
6363
"distance_unit": "feet",
64-
"is_finesse": false,
65-
"is_heavy": true,
6664
"is_improvised": false,
67-
"is_lance": false,
68-
"is_light": false,
6965
"is_martial": true,
70-
"is_melee": false,
71-
"is_net": false,
72-
"is_reach": false,
7366
"is_simple": false,
74-
"is_thrown": false,
75-
"is_two_handed": true,
76-
"is_versatile": false,
7767
"key": "srd_longbow",
78-
"long_range": 600.0,
7968
"name": "Longbow",
8069
"properties": [
81-
"ammuntion (range 150.0/600.0)",
82-
"heavy",
83-
"two-handed"
70+
{
71+
"detail": null,
72+
"property": {
73+
"name": "Two-Handed",
74+
"url": "http://localhost:8000/v2/weaponproperties/srd-2014_two-handed-wp/"
75+
}
76+
},
77+
{
78+
"detail": "range 150/",
79+
"property": {
80+
"name": "Ammunition",
81+
"url": "http://localhost:8000/v2/weaponproperties/srd-2014_ammunition-wp/"
82+
}
83+
}
8484
],
85-
"range": 150.0,
86-
"range_melee": 5.0,
87-
"ranged_attack_possible": true,
88-
"reach": 5.0,
89-
"requires_ammunition": true,
90-
"requires_loading": false,
91-
"url": "http://localhost:8000/v2/weapons/srd_longbow/",
92-
"versatile_dice": "0"
85+
"url": "http://localhost:8000/v2/weapons/srd_longbow/"
9386
},
9487
"weight": "2.000",
9588
"weight_unit": "lb"

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

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,27 @@
2121
"url": "http://localhost:8000/v2/publishers/wizards-of-the-coast/"
2222
}
2323
},
24-
"is_finesse": true,
25-
"is_heavy": false,
2624
"is_improvised": false,
27-
"is_lance": false,
28-
"is_light": true,
29-
"is_martial": true,
30-
"is_melee": true,
31-
"is_net": false,
32-
"is_reach": false,
3325
"is_simple": false,
34-
"is_thrown": false,
35-
"is_two_handed": false,
36-
"is_versatile": false,
3726
"key": "srd_shortsword",
3827
"long_range": 0.0,
3928
"name": "Shortsword",
4029
"properties": [
41-
"finesse",
42-
"light"
30+
{
31+
"detail": null,
32+
"property": {
33+
"name": "Finesse",
34+
"url": "http://localhost:8000/v2/weaponproperties/srd-2014_finesse-wp/"
35+
}
36+
},
37+
{
38+
"detail": null,
39+
"property": {
40+
"name": "Light",
41+
"url": "http://localhost:8000/v2/weaponproperties/srd-2014_light-wp/"
42+
}
43+
}
4344
],
4445
"range": 0.0,
45-
"range_melee": 5.0,
46-
"ranged_attack_possible": false,
47-
"reach": 5.0,
48-
"requires_ammunition": false,
49-
"requires_loading": false,
50-
"url": "http://localhost:8000/v2/weapons/srd_shortsword/",
51-
"versatile_dice": "0"
46+
"url": "http://localhost:8000/v2/weapons/srd_shortsword/"
5247
}

0 commit comments

Comments
 (0)