fix: photon test
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
defmodule Mobilizon.Service.Geospatial.Photon do
|
defmodule Mobilizon.Service.Geospatial.Photon do
|
||||||
@moduledoc """
|
@moduledoc """
|
||||||
[Photon](https://photon.komoot.de) backend.
|
[Photon](https://photon.komoot.io) backend.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
alias Mobilizon.Addresses.Address
|
alias Mobilizon.Addresses.Address
|
||||||
|
|||||||
@@ -17,13 +17,14 @@ defmodule Mobilizon.Service.Geospatial.PhotonTest do
|
|||||||
|> expect(:call, fn
|
|> expect(:call, fn
|
||||||
%{
|
%{
|
||||||
method: :get,
|
method: :get,
|
||||||
url: "https://photon.komoot.de/api/?q=10%20rue%20Jangot&lang=en&limit=10"
|
url: "https://photon.komoot.io/api/?q=10%20rue%20Jangot&lang=en&limit=10"
|
||||||
},
|
},
|
||||||
_opts ->
|
_opts ->
|
||||||
{:ok, %Tesla.Env{status: 200, body: data}}
|
{:ok, %Tesla.Env{status: 200, body: data}}
|
||||||
end)
|
end)
|
||||||
|
|
||||||
assert %Address{
|
assert %Address{
|
||||||
|
origin_id: "photon:3078260611",
|
||||||
locality: "Lyon",
|
locality: "Lyon",
|
||||||
description: "10 Rue Jangot",
|
description: "10 Rue Jangot",
|
||||||
region: "Auvergne-Rhône-Alpes",
|
region: "Auvergne-Rhône-Alpes",
|
||||||
|
|||||||
Reference in New Issue
Block a user