Skip to content

Commit d567f99

Browse files
committed
fixup test location
1 parent 25b6517 commit d567f99

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_location.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)