Skip to content

Commit

Permalink
Properly mock _self_version_check_logic
Browse files Browse the repository at this point in the history
Providing a value return value ensures that downstream code does not try
to pass around invalid values.
  • Loading branch information
pradyunsg committed Jul 21, 2024
1 parent 3518d32 commit e503141
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/unit/test_self_check_outdated.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def test_pip_self_version_check_calls_underlying_implementation(
# GIVEN
mock_session = Mock()
fake_options = Values({"cache_dir": str(tmpdir)})
mocked_function.return_value = None

# WHEN
self_outdated_check.pip_self_version_check(mock_session, fake_options)
Expand Down

0 comments on commit e503141

Please sign in to comment.