We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9688300 commit b2a0bbcCopy full SHA for b2a0bbc
1 file changed
tests/plugins/test_hato.py
@@ -78,11 +78,9 @@ 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 [
82
- re.compile(r"www\.jma\.go\.jp/bosai/jmatile/data/nowc/.+\.png"),
83
- re.compile(r"tile\.openstreetmap\.org/.+\.png"),
84
- ]:
85
- mocker.get(image_url, content=image_content)
+ mocker.get(re.compile(r"www\.jma\.go\.jp/bosai/jmatile/data/nowc/.+\.png"), content=image_content)
+ mocker.get(re.compile(r"tile\.openstreetmap\.org/.+\.png"),
+ request_headers={"user-agent": f"hato-bot/{conf.VERSION}"}, content=image_content)
86
87
with open(
88
os.path.join(os.path.dirname(__file__), "test_targetTimes_N1.json"),
0 commit comments