File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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" ),
You can’t perform that action at this time.
0 commit comments