From b49d8290349acb72380e10ecf4044c32510f87dc Mon Sep 17 00:00:00 2001 From: bssyousefi Date: Mon, 23 Sep 2024 15:02:23 -0400 Subject: [PATCH] refactor: use dedicated attribute --- examples/look/tests/test_app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/look/tests/test_app.py b/examples/look/tests/test_app.py index 2202a8ee4..419fe8371 100644 --- a/examples/look/tests/test_app.py +++ b/examples/look/tests/test_app.py @@ -1,5 +1,4 @@ import io -import json import os from unittest import TestCase from unittest.mock import call @@ -36,7 +35,7 @@ def test_list_images(client, mock_store): response = client.simulate_get('/images') - result = json.loads(response.content) + result = response.json assert result['images'] == image_docs assert response.status == falcon.HTTP_OK