-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b8f0cf5
commit 566e19a
Showing
3 changed files
with
32 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import lichess.api | ||
import pytest | ||
|
||
|
||
@pytest.fixture | ||
def mock_task(mocker): | ||
return mocker.MagicMock() | ||
|
||
|
||
@pytest.fixture | ||
def mocked_cloud_eval(mocker): | ||
mocker.patch('lichess.api.cloud_eval', | ||
side_effect=lichess.api.ApiHttpError(http_status=429, | ||
url='https://link.com', | ||
response_text='error', | ||
) | ||
) |
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
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