Skip to content

Commit 08ce2bb

Browse files
committed
updated tests
1 parent 156082b commit 08ce2bb

File tree

5 files changed

+82
-522
lines changed

5 files changed

+82
-522
lines changed

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

Lines changed: 16 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -250,52 +250,23 @@
250250
"hit_points": 546,
251251
"initiative_bonus": 0,
252252
"key": "srd_ancient-red-dragon",
253-
"languages": [
254-
{
255-
"desc": "Typical speakers are Humans.",
256-
"document": {
257-
"gamesystem": {
258-
"key": "o5e",
259-
"name": "5th Edition"
260-
},
261-
"key": "srd",
262-
"name": "Systems Reference Document",
263-
"permalink": "https://dnd.wizards.com/resources/systems-reference-document",
264-
"publisher": {
265-
"key": "wizards-of-the-coast",
266-
"name": "Wizards of the Coast"
267-
}
253+
"languages": {
254+
"as_string": "Common, Draconic",
255+
"data": [
256+
{
257+
"desc": "Typical speakers are Humans.",
258+
"key": "common",
259+
"name": "Common",
260+
"url": "http://localhost:8000/v2/languages/common/"
268261
},
269-
"is_exotic": false,
270-
"is_secret": false,
271-
"key": "common",
272-
"name": "Common",
273-
"script_language": "http://localhost:8000/v2/languages/common/",
274-
"url": "http://localhost:8000/v2/languages/common/"
275-
},
276-
{
277-
"desc": "Typical speakers include dragons and dragonborn.",
278-
"document": {
279-
"gamesystem": {
280-
"key": "o5e",
281-
"name": "5th Edition"
282-
},
283-
"key": "srd",
284-
"name": "Systems Reference Document",
285-
"permalink": "https://dnd.wizards.com/resources/systems-reference-document",
286-
"publisher": {
287-
"key": "wizards-of-the-coast",
288-
"name": "Wizards of the Coast"
289-
}
290-
},
291-
"is_exotic": true,
292-
"is_secret": false,
293-
"key": "draconic",
294-
"name": "Draconic",
295-
"script_language": "http://localhost:8000/v2/languages/draconic/",
296-
"url": "http://localhost:8000/v2/languages/draconic/"
297-
}
298-
],
262+
{
263+
"desc": "Typical speakers include dragons and dragonborn.",
264+
"key": "draconic",
265+
"name": "Draconic",
266+
"url": "http://localhost:8000/v2/languages/draconic/"
267+
}
268+
]
269+
},
299270
"modifiers": {
300271
"charisma": 6,
301272
"constitution": 9,

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

Lines changed: 16 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -240,52 +240,23 @@
240240
"hit_points": 7,
241241
"initiative_bonus": 2,
242242
"key": "srd_goblin",
243-
"languages": [
244-
{
245-
"desc": "Typical speakers are Humans.",
246-
"document": {
247-
"gamesystem": {
248-
"key": "o5e",
249-
"name": "5th Edition"
250-
},
251-
"key": "srd",
252-
"name": "Systems Reference Document",
253-
"permalink": "https://dnd.wizards.com/resources/systems-reference-document",
254-
"publisher": {
255-
"key": "wizards-of-the-coast",
256-
"name": "Wizards of the Coast"
257-
}
243+
"languages": {
244+
"as_string": "Common, Goblin",
245+
"data": [
246+
{
247+
"desc": "Typical speakers are Humans.",
248+
"key": "common",
249+
"name": "Common",
250+
"url": "http://localhost:8000/v2/languages/common/"
258251
},
259-
"is_exotic": false,
260-
"is_secret": false,
261-
"key": "common",
262-
"name": "Common",
263-
"script_language": "http://localhost:8000/v2/languages/common/",
264-
"url": "http://localhost:8000/v2/languages/common/"
265-
},
266-
{
267-
"desc": "Typical speakers are goblinoids.",
268-
"document": {
269-
"gamesystem": {
270-
"key": "o5e",
271-
"name": "5th Edition"
272-
},
273-
"key": "srd",
274-
"name": "Systems Reference Document",
275-
"permalink": "https://dnd.wizards.com/resources/systems-reference-document",
276-
"publisher": {
277-
"key": "wizards-of-the-coast",
278-
"name": "Wizards of the Coast"
279-
}
280-
},
281-
"is_exotic": false,
282-
"is_secret": false,
283-
"key": "goblin",
284-
"name": "Goblin",
285-
"script_language": "http://localhost:8000/v2/languages/dwarvish/",
286-
"url": "http://localhost:8000/v2/languages/goblin/"
287-
}
288-
],
252+
{
253+
"desc": "Typical speakers are goblinoids.",
254+
"key": "goblin",
255+
"name": "Goblin",
256+
"url": "http://localhost:8000/v2/languages/goblin/"
257+
}
258+
]
259+
},
289260
"modifiers": {
290261
"charisma": -1,
291262
"constitution": 0,

0 commit comments

Comments
 (0)