tests added for inverted lattitude/logitude
This commit is contained in:
parent
c9d7bc7102
commit
d089b05cf0
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
|
@ -65,12 +65,24 @@ def test_get_coordinate_latitude():
|
|||
|
||||
assert coordinate == 37.3667027222, coordinate
|
||||
|
||||
def test_get_coordinate_latitude_minus():
|
||||
photo = Photo(helper.get_file('with-location-inv.jpg'))
|
||||
coordinate = photo.get_coordinate('latitude')
|
||||
|
||||
assert coordinate == -37.3667027222, coordinate
|
||||
|
||||
def test_get_coordinate_longitude():
|
||||
photo = Photo(helper.get_file('with-location.jpg'))
|
||||
coordinate = photo.get_coordinate('longitude')
|
||||
|
||||
assert coordinate == -122.033383611, coordinate
|
||||
|
||||
def test_get_coordinate_longitude_plus():
|
||||
photo = Photo(helper.get_file('with-location-inv.jpg'))
|
||||
coordinate = photo.get_coordinate('longitude')
|
||||
|
||||
assert coordinate == 122.033383611, coordinate
|
||||
|
||||
def test_get_coordinates_without_exif():
|
||||
photo = Photo(helper.get_file('no-exif.jpg'))
|
||||
latitude = photo.get_coordinate('latitude')
|
||||
|
|
Loading…
Reference in New Issue