about summary refs log tree commit diff
path: root/test/python/test_publications.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/python/test_publications.py')
-rw-r--r--test/python/test_publications.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/python/test_publications.py b/test/python/test_publications.py
index 15c8ab7..883de6f 100644
--- a/test/python/test_publications.py
+++ b/test/python/test_publications.py
@@ -9,7 +9,7 @@ import json
 import unittest
 
 from auth_helpers import TOKEN_ENV, auth_token
-from server_test_case import HOST, PORT, ServerTestCase, database_reachable
+from server_test_case import HOST, PORT, ServerTestCase, database_reachable, envelope_data
 
 
 class PublicationTraitsTest(ServerTestCase):
@@ -35,7 +35,7 @@ class PublicationTraitsTest(ServerTestCase):
 
         response, body = self.get("/publications/24102824/traits")
         self.assertEqual(response.status, 200)
-        traits = json.loads(body)
+        traits = envelope_data(body)
         self.assertTrue(all(t["pubmed_id"] == 24102824 for t in traits))
         midbrain = next(t for t in traits if t["id"] == 17985)
         self.assertEqual(midbrain["dataset"], "BXDPublish")