@@ -53,7 +53,7 @@ def timezone_finder() -> Iterator[MagicMock]:
5353 yield mock_timezone_finder
5454
5555
56- def test_location_timezone_constructor () -> None :
56+ def test_timezone_constructor () -> None :
5757 """Test the location timezone is not looked up if it is not used."""
5858 location = Location (latitude = 52.52 , longitude = 13.405 , country_code = "DE" )
5959
@@ -62,13 +62,13 @@ def test_location_timezone_constructor() -> None:
6262 assert location .country_code == "DE"
6363
6464
65- def test_location_timezone_not_looked_up_if_unused (timezone_finder : MagicMock ) -> None :
65+ def test_timezone_not_looked_up_if_unused (timezone_finder : MagicMock ) -> None :
6666 """Test the location timezone is not looked up if it is not used."""
6767 _ = Location (latitude = 52.52 , longitude = 13.405 , country_code = "DE" )
6868 timezone_finder .timezone_at .assert_not_called ()
6969
7070
71- def test_location_timezone_looked_up_but_not_found (timezone_finder : MagicMock ) -> None :
71+ def test_timezone_looked_up_but_not_found (timezone_finder : MagicMock ) -> None :
7272 """Test the location timezone is not looked up if it is not used."""
7373 timezone_finder .timezone_at .return_value = None
7474
@@ -78,7 +78,7 @@ def test_location_timezone_looked_up_but_not_found(timezone_finder: MagicMock) -
7878 timezone_finder .timezone_at .assert_called_once_with (lat = 52.52 , lng = 13.405 )
7979
8080
81- def test_location_timezone_looked_up_and_found (timezone_finder : MagicMock ) -> None :
81+ def test_timezone_looked_up_and_found (timezone_finder : MagicMock ) -> None :
8282 """Test the location timezone is not looked up if it is not used."""
8383 timezone_finder .timezone_at .return_value = "Europe/Berlin"
8484
@@ -164,7 +164,7 @@ def test_location_timezone_looked_up_and_found(timezone_finder: MagicMock) -> No
164164 ],
165165 ids = lambda case : case .name ,
166166)
167- def test_location_from_proto (
167+ def test_from_proto (
168168 caplog : pytest .LogCaptureFixture , case : ProtoConversionTestCase
169169) -> None :
170170 """Test conversion from protobuf message to Location.
0 commit comments