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

Commits on Feb 1, 2023

  1. black: Restyle with recent black 23.1.0

    See psf/black#3302 for details.
    
    Fixes: #37
    Signed-off-by: Stanislav Levin <slev@altlinux.org>
    stanislavlevin committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    9c9b1c5 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2023

  1. tests: Simplify mock's side_effect

    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 committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    0d1032e View commit details
    Browse the repository at this point in the history