Skip to content

Commit 5b8fd77

Browse files
authored
Merge pull request #1709 from dev-hato/fix-format-add_mock_header
formatが間違ってたので直してあげたよ! #1708
2 parents b2a0bbc + d39cd30 commit 5b8fd77

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

tests/plugins/test_hato.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,15 @@ def get_amesh_test(
7878
os.path.join(os.path.dirname(__file__), "test.png"), mode="rb"
7979
) as picture_file:
8080
image_content = picture_file.read()
81-
mocker.get(re.compile(r"www\.jma\.go\.jp/bosai/jmatile/data/nowc/.+\.png"), content=image_content)
82-
mocker.get(re.compile(r"tile\.openstreetmap\.org/.+\.png"),
83-
request_headers={"user-agent": f"hato-bot/{conf.VERSION}"}, content=image_content)
81+
mocker.get(
82+
re.compile(r"www\.jma\.go\.jp/bosai/jmatile/data/nowc/.+\.png"),
83+
content=image_content,
84+
)
85+
mocker.get(
86+
re.compile(r"tile\.openstreetmap\.org/.+\.png"),
87+
request_headers={"user-agent": f"hato-bot/{conf.VERSION}"},
88+
content=image_content,
89+
)
8490

8591
with open(
8692
os.path.join(os.path.dirname(__file__), "test_targetTimes_N1.json"),

0 commit comments

Comments
 (0)