From 022c013f1d3113686b707290bc7e49071a530275 Mon Sep 17 00:00:00 2001 From: Kevin Griffin Date: Wed, 25 Oct 2023 12:53:09 -0400 Subject: [PATCH] fixes typos (#87) Signed-off-by: Kevin Griffin --- src/signify/app/credentialing.py | 4 ++-- tests/app/test_credentialing.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/signify/app/credentialing.py b/src/signify/app/credentialing.py index 88ce3bf..f7cdeb8 100644 --- a/src/signify/app/credentialing.py +++ b/src/signify/app/credentialing.py @@ -279,7 +279,7 @@ def admit(self, hab, message, grant, dt=None): m=message, ) - grant, gsigs, end = exchanges.createExchangeMessage(sender=hab, route="/ipex/admit", + admit, asigs, end = exchanges.createExchangeMessage(sender=hab, route="/ipex/admit", payload=data, embeds=None, dt=dt, dig=grant.said) - return grant, gsigs, end + return admit, asigs, end diff --git a/tests/app/test_credentialing.py b/tests/app/test_credentialing.py index b962dde..eb3d0ae 100644 --- a/tests/app/test_credentialing.py +++ b/tests/app/test_credentialing.py @@ -186,7 +186,7 @@ def test_ipex_grant(): unstub() -def test_ipex_admin(): +def test_ipex_admit(): from signify.app.clienting import SignifyClient mock_client = mock(spec=SignifyClient, strict=True) @@ -207,7 +207,7 @@ def test_ipex_admin(): mock_gsigs, mock_end)) - ipex = credentialing.Ipex(mock_client) + ipex = credentialing.Ipex(mock_client) # type: ignore grant, gsigs, end = ipex.admit(hab=mock_hab, message="this is a test", dt=dt, grant=grant) assert grant == mock_admit