We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 92c7218 + aa0bedf commit f59782cCopy full SHA for f59782c
1 file changed
tests/plugins/test_hato.py
@@ -78,11 +78,15 @@ def get_amesh_test(
78
os.path.join(os.path.dirname(__file__), "test.png"), mode="rb"
79
) as picture_file:
80
image_content = picture_file.read()
81
- for image_url in [
+ mocker.get(
82
re.compile(r"www\.jma\.go\.jp/bosai/jmatile/data/nowc/.+\.png"),
83
+ content=image_content,
84
+ )
85
86
re.compile(r"tile\.openstreetmap\.org/.+\.png"),
- ]:
- mocker.get(image_url, content=image_content)
87
+ request_headers={"user-agent": f"hato-bot/{conf.VERSION}"},
88
89
90
91
with open(
92
os.path.join(os.path.dirname(__file__), "test_targetTimes_N1.json"),
0 commit comments