generated from Hochfrequenz/tmdsclient.py
-
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.
- Loading branch information
Showing
7 changed files
with
25 additions
and
24 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
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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
""" | ||
'models' contains the TMDS data model (or at least the part which we use in this client) | ||
'models' contains the BSS data model (or at least the part which we use in this client) | ||
""" |
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 |
---|---|---|
@@ -1,22 +1,22 @@ | ||
from typing import AsyncGenerator | ||
|
||
import pytest | ||
from bssclient import TmdsConfig, bssclient | ||
from bssclient import BssConfig, BssClient | ||
from yarl import URL | ||
|
||
|
||
@pytest.fixture | ||
async def tmds_client_with_default_auth() -> AsyncGenerator[tuple[bssclient, TmdsConfig], None]: | ||
async def bss_client_with_default_auth() -> AsyncGenerator[tuple[BssClient, BssConfig], None]: | ||
""" | ||
"mention" this fixture in the signature of your test to run the code up to yield before the respective test | ||
(and the code after yield the test execution) | ||
:return: | ||
""" | ||
tmds_config = TmdsConfig( | ||
server_url=URL("https://tmds.inv/"), | ||
tmds_config = BssConfig( | ||
server_url=URL("https://bss.inv/"), | ||
usr="my-usr", | ||
pwd="my-pwd", | ||
) | ||
client = bssclient(tmds_config) | ||
client = BssClient(tmds_config) | ||
yield client, tmds_config | ||
await client.close_session() |
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