Use double quotes

This commit is contained in:
Alexander Hess 2026-11-28 03:08:55 +01:00
commit ea8f1a13e3
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -17,7 +17,7 @@ class TestSpecialMethods:
"""`City` has a non-literal text representation."""
result = repr(city)
assert result == f'<City({city.name})>'
assert result == f"<City({city.name})>"
@pytest.mark.db
@ -43,8 +43,8 @@ class TestProperties:
result = city.center
assert isinstance(result, utils.Location)
assert result.latitude == pytest.approx(city_data['center_latitude'])
assert result.longitude == pytest.approx(city_data['center_longitude'])
assert result.latitude == pytest.approx(city_data["center_latitude"])
assert result.longitude == pytest.approx(city_data["center_longitude"])
def test_center_is_cached(self, city):
"""Test `City.center` property."""
@ -58,8 +58,8 @@ class TestProperties:
result = city.northeast
assert isinstance(result, utils.Location)
assert result.latitude == pytest.approx(city_data['northeast_latitude'])
assert result.longitude == pytest.approx(city_data['northeast_longitude'])
assert result.latitude == pytest.approx(city_data["northeast_latitude"])
assert result.longitude == pytest.approx(city_data["northeast_longitude"])
def test_northeast_is_cached(self, city):
"""Test `City.northeast` property."""
@ -73,8 +73,8 @@ class TestProperties:
result = city.southwest
assert isinstance(result, utils.Location)
assert result.latitude == pytest.approx(city_data['southwest_latitude'])
assert result.longitude == pytest.approx(city_data['southwest_longitude'])
assert result.latitude == pytest.approx(city_data["southwest_latitude"])
assert result.longitude == pytest.approx(city_data["southwest_longitude"])
def test_southwest_is_cached(self, city):
"""Test `City.southwest` property."""