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

codecheck: Address issues found by recent black 23.1.0 and pylint 2.16.0 #38

Merged
merged 2 commits into from Feb 2, 2023

Conversation

stanislavlevin
Copy link
Owner

@stanislavlevin stanislavlevin commented Feb 1, 2023

See psf/black#3302 for details.

Fixes: #37
Signed-off-by: Stanislav Levin <slev@altlinux.org>
https://docs.python.org/3/library/unittest.mock.html#unittest.mock.Mock
> side_effect: A function to be called whenever the Mock is called. See
  the side_effect attribute. Useful for raising exceptions or dynamically
  changing return values. The function is called with the same arguments
  as the mock, and unless it returns DEFAULT, the return value of this
  function is used as the return value.
  Alternatively side_effect can be an exception class or instance. In
  this case the exception will be raised when the mock is called.

Fixes: #39
Signed-off-by: Stanislav Levin <slev@altlinux.org>
@stanislavlevin stanislavlevin changed the title black: Restyle with recent black 23.1.0 codecheck: Address issues found by recent black 23.1.0 and pylint 2.16.0 Feb 2, 2023
@stanislavlevin stanislavlevin merged commit beeeb1f into main Feb 2, 2023
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.

None yet

1 participant