From 186d6271924e4b2c96ceb77f50080d4d656b9a21 Mon Sep 17 00:00:00 2001 From: August Johnson Date: Tue, 29 Oct 2024 06:54:37 -0500 Subject: [PATCH] Updating tests. --- ...est_creature_ancient_example.approved.json | 4 +++ ...test_creature_goblin_example.approved.json | 15 ++++++++ ....test_creature_guard_example.approved.json | 9 +++++ ...cts.test_creatureset_example.approved.json | 34 +++++++++++++++++++ ...cts.test_environment_example.approved.json | 1 + 5 files changed, 63 insertions(+) diff --git a/api_v2/tests/responses/TestObjects.test_creature_ancient_example.approved.json b/api_v2/tests/responses/TestObjects.test_creature_ancient_example.approved.json index d30bce6c..41392aaf 100644 --- a/api_v2/tests/responses/TestObjects.test_creature_ancient_example.approved.json +++ b/api_v2/tests/responses/TestObjects.test_creature_ancient_example.approved.json @@ -132,6 +132,10 @@ "damage_vulnerabilities": [], "darkvision_range": 120.0, "document": "http://localhost:8000/v2/documents/srd/", + "environments": [ + "http://localhost:8000/v2/environments/hills/", + "http://localhost:8000/v2/environments/mountain/" + ], "experience_points": 62000, "hit_dice": "28d20+252", "hit_points": 546, diff --git a/api_v2/tests/responses/TestObjects.test_creature_goblin_example.approved.json b/api_v2/tests/responses/TestObjects.test_creature_goblin_example.approved.json index c8d75184..26edea98 100644 --- a/api_v2/tests/responses/TestObjects.test_creature_goblin_example.approved.json +++ b/api_v2/tests/responses/TestObjects.test_creature_goblin_example.approved.json @@ -46,6 +46,21 @@ "damage_vulnerabilities": [], "darkvision_range": 60.0, "document": "http://localhost:8000/v2/documents/srd/", + "environments": [ + "http://localhost:8000/v2/environments/arctic/", + "http://localhost:8000/v2/environments/caves/", + "http://localhost:8000/v2/environments/desert/", + "http://localhost:8000/v2/environments/forest/", + "http://localhost:8000/v2/environments/grassland/", + "http://localhost:8000/v2/environments/hills/", + "http://localhost:8000/v2/environments/mountain/", + "http://localhost:8000/v2/environments/ruins/", + "http://localhost:8000/v2/environments/sewer/", + "http://localhost:8000/v2/environments/srd_feywild/", + "http://localhost:8000/v2/environments/swamp/", + "http://localhost:8000/v2/environments/underworld/", + "http://localhost:8000/v2/environments/urban/" + ], "experience_points": 50, "hit_dice": "2d6", "hit_points": 7, diff --git a/api_v2/tests/responses/TestObjects.test_creature_guard_example.approved.json b/api_v2/tests/responses/TestObjects.test_creature_guard_example.approved.json index 38a20d33..69f2b2a5 100644 --- a/api_v2/tests/responses/TestObjects.test_creature_guard_example.approved.json +++ b/api_v2/tests/responses/TestObjects.test_creature_guard_example.approved.json @@ -34,6 +34,15 @@ "damage_vulnerabilities": [], "darkvision_range": null, "document": "http://localhost:8000/v2/documents/srd/", + "environments": [ + "http://localhost:8000/v2/environments/coast/", + "http://localhost:8000/v2/environments/desert/", + "http://localhost:8000/v2/environments/forest/", + "http://localhost:8000/v2/environments/grassland/", + "http://localhost:8000/v2/environments/hills/", + "http://localhost:8000/v2/environments/mountain/", + "http://localhost:8000/v2/environments/urban/" + ], "experience_points": 25, "hit_dice": "2d8+2", "hit_points": 11, diff --git a/api_v2/tests/responses/TestObjects.test_creatureset_example.approved.json b/api_v2/tests/responses/TestObjects.test_creatureset_example.approved.json index 00152ce9..3932fc13 100644 --- a/api_v2/tests/responses/TestObjects.test_creatureset_example.approved.json +++ b/api_v2/tests/responses/TestObjects.test_creatureset_example.approved.json @@ -38,6 +38,10 @@ "damage_vulnerabilities": [], "darkvision_range": null, "document": "http://localhost:8000/v2/documents/srd/", + "environments": [ + "http://localhost:8000/v2/environments/desert/", + "http://localhost:8000/v2/environments/urban/" + ], "experience_points": 25, "hit_dice": "2d10+4", "hit_points": 15, @@ -158,6 +162,7 @@ "damage_vulnerabilities": [], "darkvision_range": null, "document": "http://localhost:8000/v2/documents/srd/", + "environments": [], "experience_points": 0, "hit_dice": null, "hit_points": 11, @@ -291,6 +296,9 @@ "damage_vulnerabilities": [], "darkvision_range": null, "document": "http://localhost:8000/v2/documents/srd/", + "environments": [ + "http://localhost:8000/v2/environments/urban/" + ], "experience_points": 50, "hit_dice": "3d10+3", "hit_points": 19, @@ -436,6 +444,11 @@ "damage_vulnerabilities": [], "darkvision_range": null, "document": "http://localhost:8000/v2/documents/srd/", + "environments": [ + "http://localhost:8000/v2/environments/desert/", + "http://localhost:8000/v2/environments/forest/", + "http://localhost:8000/v2/environments/grassland/" + ], "experience_points": 1100, "hit_dice": "8d12+24", "hit_points": 76, @@ -569,6 +582,11 @@ "damage_vulnerabilities": [], "darkvision_range": null, "document": "http://localhost:8000/v2/documents/srd/", + "environments": [ + "http://localhost:8000/v2/environments/forest/", + "http://localhost:8000/v2/environments/hills/", + "http://localhost:8000/v2/environments/urban/" + ], "experience_points": 25, "hit_dice": "1d8+1", "hit_points": 5, @@ -702,6 +720,11 @@ "damage_vulnerabilities": [], "darkvision_range": null, "document": "http://localhost:8000/v2/documents/srd/", + "environments": [ + "http://localhost:8000/v2/environments/grassland/", + "http://localhost:8000/v2/environments/hills/", + "http://localhost:8000/v2/environments/urban/" + ], "experience_points": 25, "hit_dice": "2d8+2", "hit_points": 11, @@ -835,6 +858,10 @@ "damage_vulnerabilities": [], "darkvision_range": null, "document": "http://localhost:8000/v2/documents/srd/", + "environments": [ + "http://localhost:8000/v2/environments/mountain/", + "http://localhost:8000/v2/environments/urban/" + ], "experience_points": 25, "hit_dice": "2d8+2", "hit_points": 11, @@ -968,6 +995,10 @@ "damage_vulnerabilities": [], "darkvision_range": null, "document": "http://localhost:8000/v2/documents/srd/", + "environments": [ + "http://localhost:8000/v2/environments/grassland/", + "http://localhost:8000/v2/environments/urban/" + ], "experience_points": 50, "hit_dice": "2d10+2", "hit_points": 13, @@ -1101,6 +1132,9 @@ "damage_vulnerabilities": [], "darkvision_range": null, "document": "http://localhost:8000/v2/documents/srd/", + "environments": [ + "http://localhost:8000/v2/environments/urban/" + ], "experience_points": 100, "hit_dice": "3d10+3", "hit_points": 19, diff --git a/api_v2/tests/responses/TestObjects.test_environment_example.approved.json b/api_v2/tests/responses/TestObjects.test_environment_example.approved.json index 0900b3b2..3c5201a6 100644 --- a/api_v2/tests/responses/TestObjects.test_environment_example.approved.json +++ b/api_v2/tests/responses/TestObjects.test_environment_example.approved.json @@ -2,6 +2,7 @@ "aquatic": false, "desc": "The **Astral Plane** is the realm of thought and dream, where visitors travel as disembodied souls to reach the planes of the divine and demonic. It is a great, silvery sea, the same above and below, with swirling wisps of white and gray streaking among motes of light resembling distant stars. Erratic whirlpools of color flicker in midair like spinning coins. Occasional bits of solid matter can be found here, but most of the Astral Plane is an endless, open domain.", "document": "http://localhost:8000/v2/documents/srd/", + "interior": false, "key": "srd_astral-plane", "name": "Astral Plane", "planar": true,