Skip to content
Commit abfb91fd authored by Michał Górny's avatar Michał Górny
Browse files

Fix assertions in `test_git_hook`

Fix `called_once()` assertions in `test_git_hook` to use the correct
`assert_called_once()` method.  The former does not exist, so it
evaluates to a mocked method in Python < 3.12, making the assert
meaningless, and it triggers an error in Python 3.12+.

While at it, split the mock into two because otherwise the test would
fail because two `hooks.git_hook()` calls imply two mock calls.
parent 14d0b366
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment