Skip to content

Commit 5f53110

Browse files
committed
updated test cases to reflect new shape of API response (closes #756)
1 parent f4c5c31 commit 5f53110

25 files changed

+65
-32
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"key": "open5e",
2626
"name": "Open5e",
2727
"url": "http://localhost:8000/v2/publishers/open5e/"
28-
}
28+
},
29+
"type": "MISC"
2930
},
3031
"key": "chaotic-good",
3132
"morality": "good",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"key": "wizards-of-the-coast",
1919
"name": "Wizards of the Coast",
2020
"url": "http://localhost:8000/v2/publishers/wizards-of-the-coast/"
21-
}
21+
},
22+
"type": "SOURCE"
2223
},
2324
"grants_stealth_disadvantage": true,
2425
"key": "srd_splint",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
"key": "wizards-of-the-coast",
4242
"name": "Wizards of the Coast",
4343
"url": "http://localhost:8000/v2/publishers/wizards-of-the-coast/"
44-
}
44+
},
45+
"type": "SOURCE"
4546
},
4647
"key": "srd_acolyte",
4748
"name": "Acolyte",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"key": "wizards-of-the-coast",
1616
"name": "Wizards of the Coast",
1717
"url": "http://localhost:8000/v2/publishers/wizards-of-the-coast/"
18-
}
18+
},
19+
"type": "SOURCE"
1920
},
2021
"features": [
2122
{

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"key": "open5e",
3131
"name": "Open5e",
3232
"url": "http://localhost:8000/v2/publishers/open5e/"
33-
}
33+
},
34+
"type": "MISC"
3435
},
3536
"icon": {
3637
"alt_text": "An icon representing the Stunned condition. A black-and-white silhouette of a figure visible from the shoulders up faces the viewer. They are surrounded by stars that sit on rings which suggest orbits.",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@
195195
"key": "wizards-of-the-coast",
196196
"name": "Wizards of the Coast",
197197
"url": "http://localhost:8000/v2/publishers/wizards-of-the-coast/"
198-
}
198+
},
199+
"type": "SOURCE"
199200
},
200201
"environments": [
201202
{

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@
9898
"key": "wizards-of-the-coast",
9999
"name": "Wizards of the Coast",
100100
"url": "http://localhost:8000/v2/publishers/wizards-of-the-coast/"
101-
}
101+
},
102+
"type": "SOURCE"
102103
},
103104
"environments": [
104105
{

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@
8787
"key": "wizards-of-the-coast",
8888
"name": "Wizards of the Coast",
8989
"url": "http://localhost:8000/v2/publishers/wizards-of-the-coast/"
90-
}
90+
},
91+
"type": "SOURCE"
9192
},
9293
"environments": [
9394
{

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

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@
6969
"key": "wizards-of-the-coast",
7070
"name": "Wizards of the Coast",
7171
"url": "http://localhost:8000/v2/publishers/wizards-of-the-coast/"
72-
}
72+
},
73+
"type": "SOURCE"
7374
},
7475
"environments": [
7576
{
@@ -236,7 +237,8 @@
236237
"key": "wizards-of-the-coast",
237238
"name": "Wizards of the Coast",
238239
"url": "http://localhost:8000/v2/publishers/wizards-of-the-coast/"
239-
}
240+
},
241+
"type": "SOURCE"
240242
},
241243
"environments": [],
242244
"experience_points": 0,
@@ -426,7 +428,8 @@
426428
"key": "wizards-of-the-coast",
427429
"name": "Wizards of the Coast",
428430
"url": "http://localhost:8000/v2/publishers/wizards-of-the-coast/"
429-
}
431+
},
432+
"type": "SOURCE"
430433
},
431434
"environments": [
432435
{
@@ -655,7 +658,8 @@
655658
"key": "wizards-of-the-coast",
656659
"name": "Wizards of the Coast",
657660
"url": "http://localhost:8000/v2/publishers/wizards-of-the-coast/"
658-
}
661+
},
662+
"type": "SOURCE"
659663
},
660664
"environments": [
661665
{
@@ -866,7 +870,8 @@
866870
"key": "wizards-of-the-coast",
867871
"name": "Wizards of the Coast",
868872
"url": "http://localhost:8000/v2/publishers/wizards-of-the-coast/"
869-
}
873+
},
874+
"type": "SOURCE"
870875
},
871876
"environments": [
872877
{
@@ -1077,7 +1082,8 @@
10771082
"key": "wizards-of-the-coast",
10781083
"name": "Wizards of the Coast",
10791084
"url": "http://localhost:8000/v2/publishers/wizards-of-the-coast/"
1080-
}
1085+
},
1086+
"type": "SOURCE"
10811087
},
10821088
"environments": [
10831089
{
@@ -1292,7 +1298,8 @@
12921298
"key": "wizards-of-the-coast",
12931299
"name": "Wizards of the Coast",
12941300
"url": "http://localhost:8000/v2/publishers/wizards-of-the-coast/"
1295-
}
1301+
},
1302+
"type": "SOURCE"
12961303
},
12971304
"environments": [
12981305
{
@@ -1493,7 +1500,8 @@
14931500
"key": "wizards-of-the-coast",
14941501
"name": "Wizards of the Coast",
14951502
"url": "http://localhost:8000/v2/publishers/wizards-of-the-coast/"
1496-
}
1503+
},
1504+
"type": "SOURCE"
14971505
},
14981506
"environments": [
14991507
{
@@ -1694,7 +1702,8 @@
16941702
"key": "wizards-of-the-coast",
16951703
"name": "Wizards of the Coast",
16961704
"url": "http://localhost:8000/v2/publishers/wizards-of-the-coast/"
1697-
}
1705+
},
1706+
"type": "SOURCE"
16981707
},
16991708
"environments": [
17001709
{

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"name": "Wizards of the Coast",
3030
"url": "http://localhost:8000/v2/publishers/wizards-of-the-coast/"
3131
},
32+
"type": "SOURCE",
3233
"url": "http://localhost:8000/v2/documents/srd-2014/",
3334
"weight_unit": "lb"
3435
}

0 commit comments

Comments
 (0)