Improve string formatting v7 (#33705)
This commit is contained in:
parent
15f41c84f9
commit
67c3a4c970
7 changed files with 164 additions and 164 deletions
|
@ -199,7 +199,7 @@ async def test_upgrade_token(
|
|||
|
||||
with requests_mock.mock() as rqmck:
|
||||
rqmck.get(
|
||||
re.compile(AbstractWithingsApi.URL + "/v2/user?.*action=getdevice(&.*|$)"),
|
||||
re.compile(f"{AbstractWithingsApi.URL}/v2/user?.*action=getdevice(&.*|$)"),
|
||||
status_code=200,
|
||||
json=WITHINGS_GET_DEVICE_RESPONSE_EMPTY,
|
||||
)
|
||||
|
@ -255,7 +255,7 @@ async def test_auth_failure(
|
|||
|
||||
with requests_mock.mock() as rqmck:
|
||||
rqmck.get(
|
||||
re.compile(AbstractWithingsApi.URL + "/v2/user?.*action=getdevice(&.*|$)"),
|
||||
re.compile(f"{AbstractWithingsApi.URL}/v2/user?.*action=getdevice(&.*|$)"),
|
||||
status_code=200,
|
||||
json={"status": 401, "body": {}},
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue