Improve string formatting v7 (#33705)

This commit is contained in:
springstan authored and GitHub committed 2020-04-05 17:34:24 -05:00
1 parent 15f41c84f9
commit 67c3a4c970
7 files changed
+164 -164

No files matched your search

+2 -2
View File
@@ -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": {}},
)