From a4f9d1b1542534a2b32a171e2b2b2d3ce92735d4 Mon Sep 17 00:00:00 2001 From: August Johnson Date: Tue, 8 Oct 2024 14:20:41 -0500 Subject: [PATCH] supporting refactor of gamesystem --- .../responses/TestObjects.test_document_example.approved.json | 2 +- .../responses/TestObjects.test_gamesystem_example.approved.json | 2 +- api_v2/tests/test_objects.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api_v2/tests/responses/TestObjects.test_document_example.approved.json b/api_v2/tests/responses/TestObjects.test_document_example.approved.json index 9a0c1ac1..119ed566 100644 --- a/api_v2/tests/responses/TestObjects.test_document_example.approved.json +++ b/api_v2/tests/responses/TestObjects.test_document_example.approved.json @@ -2,6 +2,7 @@ "author": "Mike Mearls, Jeremy Crawford, Chris Perkins, Rodney Thompson, Peter Lee, James Wyatt, Robert J. Schwalb, Bruce R. Cordell, Chris Sims, and Steve Townshend, based on original material by E. Gary Gygax and Dave Arneson.", "desc": "The Systems Reference Document (SRD) contains guidelines for publishing content under the Open-Gaming License (OGL) or Creative Commons. The Dungeon Masters Guild also provides self-publishing opportunities for individuals and groups.", "distance_unit": "feet", + "gamesystem": "http://localhost:8000/v2/gamesystems/o5e/", "key": "srd", "licenses": [ "http://localhost:8000/v2/licenses/cc-by-40/", @@ -11,7 +12,6 @@ "permalink": "https://dnd.wizards.com/resources/systems-reference-document", "published_at": "2023-01-23T00:00:00", "publisher": "http://localhost:8000/v2/publishers/wizards-of-the-coast/", - "ruleset": "http://localhost:8000/v2/rulesets/o5e/", "stats_expected": null, "url": "http://localhost:8000/v2/documents/srd/" } diff --git a/api_v2/tests/responses/TestObjects.test_gamesystem_example.approved.json b/api_v2/tests/responses/TestObjects.test_gamesystem_example.approved.json index cdad0800..a81559ef 100644 --- a/api_v2/tests/responses/TestObjects.test_gamesystem_example.approved.json +++ b/api_v2/tests/responses/TestObjects.test_gamesystem_example.approved.json @@ -3,5 +3,5 @@ "desc": "Original 5E.", "key": "o5e", "name": "5th Edition", - "url": "http://localhost:8000/v2/rulesets/o5e/" + "url": "http://localhost:8000/v2/gamesystems/o5e/" } diff --git a/api_v2/tests/test_objects.py b/api_v2/tests/test_objects.py index 6ce36fb7..73719ca2 100644 --- a/api_v2/tests/test_objects.py +++ b/api_v2/tests/test_objects.py @@ -67,7 +67,7 @@ def test_armor_example(self): # /GAMESYSTEM ENDPOINT def test_gamesystem_example(self): - path="/v2/rulesets/o5e/" + path="/v2/gamesystems/o5e/" self._verify(path) # /BACKGROUNDS ENDPOINT