Skip to content

Commit 9c1ad7c

Browse files
committed
fix: tests
1 parent e8c2fb6 commit 9c1ad7c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def mock_rest() -> aioresponses:
173173
with aioresponses() as mocked:
174174
# Match the base URL and allow any query params
175175
mocked.post(
176-
re.compile(r"https://euiot\.roborock\.com/api/v1/getUrlByEmail.*"),
176+
re.compile(r"https://.*iot\.roborock\.com/api/v1/getUrlByEmail.*"),
177177
status=200,
178178
payload={
179179
"code": 200,

tests/mock_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@
766766
BASE_URL_REQUEST = {
767767
"code": 200,
768768
"msg": "success",
769-
"data": {"url": "https://sample.com"},
769+
"data": {"url": "https://sample.com", "countrycode": 1, "country": "US"},
770770
}
771771

772772
GET_CODE_RESPONSE = {"code": 200, "msg": "success", "data": None}

0 commit comments

Comments
 (0)