forked from ray-project/ray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Jobs] [CI] Fix usage of mocks in
test_cli.py
so it doesn't spuriou…
…sly pass (ray-project#29721) test_cli.py uses statements of the form assert mock_sdk_client.called_with("env_addr") which always pass because it's a mock. You can test this by changing the method name called_with to anything and/or changing the argument "env_addr" to anything. To fix this, we need to change all of them to mock_sdk_client.assert_called_with("env_addr"), which is the correct API for the mock library.
- Loading branch information
1 parent
28e84b8
commit aecba4d
Showing
1 changed file
with
61 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters