Skip to content

Commit e503141

Browse files
committed
Properly mock _self_version_check_logic
Providing a value return value ensures that downstream code does not try to pass around invalid values.
1 parent 3518d32 commit e503141

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/unit/test_self_check_outdated.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def test_pip_self_version_check_calls_underlying_implementation(
4141
# GIVEN
4242
mock_session = Mock()
4343
fake_options = Values({"cache_dir": str(tmpdir)})
44+
mocked_function.return_value = None
4445

4546
# WHEN
4647
self_outdated_check.pip_self_version_check(mock_session, fake_options)

0 commit comments

Comments
 (0)