Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added a test for mock side effect with misaligned args #326

Merged
merged 1 commit into from
May 22, 2024

Conversation

evalott100
Copy link
Contributor

@evalott100 evalott100 commented May 22, 2024

Closes #319

I couldn't reproduce the behaviour in 319 for whatever reason. Maybe it's been indirectly fixed since now that we use a MagicMock instead in the mock signal backend.

This PR just adds a test to show that we do get a nice error.

@evalott100 evalott100 self-assigned this May 22, 2024
@evalott100 evalott100 requested a review from dperl-dls May 22, 2024 14:23
@evalott100 evalott100 force-pushed the add-test-for-incorrect-mock-callback-args-kwargs branch from 7806e78 to ae89934 Compare May 22, 2024 14:24
Copy link
Contributor

@dperl-dls dperl-dls left a comment

Choose a reason for hiding this comment

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

Great, thanks for looking at this!

@evalott100 evalott100 merged commit 8950a2f into main May 22, 2024
18 checks passed
@evalott100 evalott100 deleted the add-test-for-incorrect-mock-callback-args-kwargs branch May 22, 2024 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Errors in MockSignalBackend callback/side_effect are not reported.
2 participants