Use double quotes
This commit is contained in:
parent
7b32ffc599
commit
ea8f1a13e3
1 changed files with 2464 additions and 2466 deletions
|
|
@ -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."""
|
||||
|
|
|
|||
Loading…
Reference in a new issue