Improve string formatting v7 (#33705)
This commit is contained in:
1 parent
15f41c84f9
commit
67c3a4c970
7 files changed
+164
-164
No files matched your search
@@ -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": {}},
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user