File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def test_unknown_address(self) -> None:
3535 reader = geoip2 .database .Reader ("tests/data/test-data/GeoIP2-City-Test.mmdb" )
3636 with self .assertRaisesRegex (
3737 geoip2 .errors .AddressNotFoundError ,
38- "The address 10.10.10.10 is not in the " " database." ,
38+ "The address 10.10.10.10 is not in the database." ,
3939 ):
4040 reader .city ("10.10.10.10" )
4141 reader .close ()
@@ -56,15 +56,15 @@ def test_wrong_database(self) -> None:
5656 reader = geoip2 .database .Reader ("tests/data/test-data/GeoIP2-City-Test.mmdb" )
5757 with self .assertRaisesRegex (
5858 TypeError ,
59- "The country method cannot be used with " " the GeoIP2-City database" ,
59+ "The country method cannot be used with the GeoIP2-City database" ,
6060 ):
6161 reader .country ("1.1.1.1" )
6262 reader .close ()
6363
6464 def test_invalid_address (self ) -> None :
6565 reader = geoip2 .database .Reader ("tests/data/test-data/GeoIP2-City-Test.mmdb" )
6666 with self .assertRaisesRegex (
67- ValueError , "u?'invalid' does not appear to be an " " IPv4 or IPv6 address"
67+ ValueError , "u?'invalid' does not appear to be an IPv4 or IPv6 address"
6868 ):
6969 reader .city ("invalid" )
7070 reader .close ()
Original file line number Diff line number Diff line change @@ -236,8 +236,7 @@ def test_insights_min(self) -> None:
236236 self .assertEqual (
237237 type (model .subdivisions .most_specific ),
238238 geoip2 .records .Subdivision ,
239- "geoip2.records.Subdivision object returned even"
240- "when none are available." ,
239+ "geoip2.records.Subdivision object returned evenwhen none are available." ,
241240 )
242241 self .assertEqual (
243242 model .subdivisions .most_specific .names , {}, "Empty names hash returned"
@@ -448,7 +447,7 @@ def test_two_locales(self) -> None:
448447 self .assertEqual (
449448 model .continent .name ,
450449 None ,
451- "continent name is undef (no Akan or French " " available)" ,
450+ "continent name is undef (no Akan or French available)" ,
452451 )
453452 self .assertEqual (model .country .name , "États-Unis" , "country name is in French" )
454453
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ def test_200_error(self):
147147
148148 def test_bad_ip_address (self ):
149149 with self .assertRaisesRegex (
150- ValueError , "'1.2.3' does not appear to be an IPv4 " " or IPv6 address"
150+ ValueError , "'1.2.3' does not appear to be an IPv4 or IPv6 address"
151151 ):
152152 self .run_client (self .client .country ("1.2.3" ))
153153
@@ -176,7 +176,7 @@ def test_weird_body_error(self):
176176
177177 with self .assertRaisesRegex (
178178 HTTPError ,
179- "Response contains JSON but it does not " " specify code or error keys" ,
179+ "Response contains JSON but it does not specify code or error keys" ,
180180 ):
181181 self .run_client (self .client .country ("1.2.3.8" ))
182182
You can’t perform that action at this time.
0 commit comments