Import geopy.distance as geo_distance everywhere
This commit is contained in:
parent
d660f0cc4e
commit
07660ecff9
1 changed files with 5 additions and 4 deletions
|
|
@ -5,7 +5,7 @@ import json
|
|||
import googlemaps as gm
|
||||
import pytest
|
||||
import sqlalchemy as sa
|
||||
from geopy import distance
|
||||
from geopy import distance as geo_distance
|
||||
from sqlalchemy import exc as sa_exc
|
||||
|
||||
from velofy import db
|
||||
|
|
@ -21,7 +21,7 @@ def another_address(make_address):
|
|||
@pytest.fixture
|
||||
def path(address, another_address, make_address):
|
||||
"""A `Path` from `address` to `another_address`."""
|
||||
air_distance = distance.great_circle(
|
||||
air_distance = geo_distance.great_circle(
|
||||
address.location.lat_lng,
|
||||
another_address.location.lat_lng,
|
||||
).meters
|
||||
|
|
|
|||
Loading…
Reference in a new issue