-
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.
* chore: remove aiohttp pin Signed-off-by: F.N. Claessen <[email protected]> * fix: convery sync test into async test to create and event loop which is needed for aiohttp.ClientSession Signed-off-by: Victor Garcia Reolid <[email protected]> --------- Signed-off-by: F.N. Claessen <[email protected]> Signed-off-by: Victor Garcia Reolid <[email protected]> Co-authored-by: Victor Garcia Reolid <[email protected]>
- Loading branch information
1 parent
ece5a48
commit 12459f0
Showing
2 changed files
with
7 additions
and
4 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 |
---|---|---|
|
@@ -55,7 +55,8 @@ | |
), | ||
], | ||
) | ||
def test__init__( | ||
@pytest.mark.asyncio | ||
async def test__init__( | ||
ssl, | ||
host, | ||
api_version, | ||
|
@@ -134,12 +135,14 @@ def test__init__( | |
), | ||
], | ||
) | ||
def test__post_init__(kwargs, error_type, error_text): | ||
@pytest.mark.asyncio | ||
async def test__post_init__(kwargs, error_type, error_text): | ||
with pytest.raises(error_type, match=error_text): | ||
FlexMeasuresClient(**kwargs) | ||
|
||
|
||
def test_build_url(): | ||
@pytest.mark.asyncio | ||
async def test_build_url(): | ||
flexmeasures_client = FlexMeasuresClient("password", "[email protected]") | ||
url = flexmeasures_client.build_url(uri="endpoint", path="/path/") | ||
assert url.human_repr() == "http://localhost:5000/path/endpoint" | ||
|