-
-
Notifications
You must be signed in to change notification settings - Fork 28.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace aiohttp mock with patch in Advantage Air (#104932)
Co-authored-by: J. Nick Koston <nick@koston.org>
- Loading branch information
Showing
13 changed files
with
253 additions
and
493 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
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,20 @@ | ||
"""Fixtures for advantage_air.""" | ||
from __future__ import annotations | ||
|
||
import pytest | ||
|
||
from . import patch_get, patch_update | ||
|
||
|
||
@pytest.fixture | ||
def mock_get(): | ||
"""Fixture to patch the Advantage Air async_get method.""" | ||
with patch_get() as mock_get: | ||
yield mock_get | ||
|
||
|
||
@pytest.fixture | ||
def mock_update(): | ||
"""Fixture to patch the Advantage Air async_get method.""" | ||
with patch_update() as mock_get: | ||
yield mock_get |
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
Oops, something went wrong.