From 4927b2d401b3d389e70eda7dbb40cfe75a613d10 Mon Sep 17 00:00:00 2001 From: csae8092 Date: Wed, 24 Jan 2024 10:16:49 +0100 Subject: [PATCH] tests for net json render should not fail any more --- apis_core/apis_entities/tests.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/apis_core/apis_entities/tests.py b/apis_core/apis_entities/tests.py index f326fa9..cc1a1ac 100644 --- a/apis_core/apis_entities/tests.py +++ b/apis_core/apis_entities/tests.py @@ -290,12 +290,8 @@ def test_020_api_list_view(self): r = client.get(value) self.assertTrue(r.status_code, 200) if key.startswith("relation"): - try: - r = client.get(f"{value}?format=json%2Bnet") - self.assertTrue(r.status_code, 200) - except Exception as e: - print(value, e) - continue + r = client.get(f"{value}?format=json%2Bnet") + self.assertTrue(r.status_code, 200) def test_021_api_detail_view(self): item = Person.objects.last()