Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

feat:added create invitation handler unit test #107

Merged

Conversation

PeterStrob
Copy link
Contributor

Signed-off-by: PeterStrob peter@indicio.tech

Signed-off-by: PeterStrob <peter@indicio.tech>
), patch.object(
connection, "metadata_set", mock.CoroutineMock()
) as mock_set, patch.object(
AgentMessage, "assign_thread_from", mock.CoroutineMock()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should be able to let this method play out as normal without mocking.

)

with patch.object(
MockResponder, "send_reply", mock.CoroutineMock()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't need to mock this method. The mock responder already has mocked methods. We should check that the value that the MockResponder stores in it's messages list meets our expectations, as we've done in some of our other unit tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On it

Signed-off-by: PeterStrob <peter@indicio.tech>
Copy link
Contributor

@dbluhm dbluhm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@dbluhm dbluhm enabled auto-merge October 27, 2021 18:56
@dbluhm dbluhm merged commit 3ea00ba into hyperledger-archives:main Oct 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants