From e7c130054d5379e64478ea7a51f6937bd2fd0cfc Mon Sep 17 00:00:00 2001 From: Dan Funk Date: Tue, 2 Jun 2020 20:07:56 -0400 Subject: [PATCH] Fixing a test. --- tests/test_approvals_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_approvals_api.py b/tests/test_approvals_api.py index f323321c..76e77cbc 100644 --- a/tests/test_approvals_api.py +++ b/tests/test_approvals_api.py @@ -65,8 +65,8 @@ class TestApprovals(BaseTest): self.assertEqual(len(response), 1) # Confirm approver UID matches returned payload - approval = ApprovalSchema().load(response[0]) - self.assertEqual(approval.approver['uid'], approver_uid) + approval = response[0] + self.assertEqual(approval['approver']['uid'], approver_uid) def test_list_approvals_per_admin(self): """All approvals will be returned"""