changement du endpoint dans les tests
This commit is contained in:
parent
99421545ab
commit
0818331319
3 changed files with 4 additions and 4 deletions
|
@ -5,7 +5,7 @@ describe ApiCarto::API do
|
||||||
subject { described_class.search_qp(geojson) }
|
subject { described_class.search_qp(geojson) }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
stub_request(:post, "https://apicarto.sgmap.fr/quartiers-prioritaires/search")
|
stub_request(:post, "https://sandbox.geo.api.gouv.fr/apicarto/quartiers-prioritaires/search")
|
||||||
.with(:body => /.*/,
|
.with(:body => /.*/,
|
||||||
:headers => { 'Content-Type' => 'application/json' })
|
:headers => { 'Content-Type' => 'application/json' })
|
||||||
.to_return(status: status, body: body)
|
.to_return(status: status, body: body)
|
||||||
|
@ -53,7 +53,7 @@ describe ApiCarto::API do
|
||||||
subject { described_class.search_cadastre(geojson) }
|
subject { described_class.search_cadastre(geojson) }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
stub_request(:post, "https://apicarto.sgmap.fr/cadastre/geometrie")
|
stub_request(:post, "https://sandbox.geo.api.gouv.fr/apicarto/cadastre/geometrie")
|
||||||
.with(:body => /.*/,
|
.with(:body => /.*/,
|
||||||
:headers => { 'Content-Type' => 'application/json' })
|
:headers => { 'Content-Type' => 'application/json' })
|
||||||
.to_return(status: status, body: body)
|
.to_return(status: status, body: body)
|
||||||
|
|
|
@ -4,7 +4,7 @@ describe ApiCarto::CadastreAdapter do
|
||||||
subject { described_class.new(coordinates).results }
|
subject { described_class.new(coordinates).results }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
stub_request(:post, "https://apicarto.sgmap.fr/cadastre/geometrie")
|
stub_request(:post, "https://sandbox.geo.api.gouv.fr/apicarto/cadastre/geometrie")
|
||||||
.with(:body => /.*/,
|
.with(:body => /.*/,
|
||||||
:headers => { 'Content-Type' => 'application/json' })
|
:headers => { 'Content-Type' => 'application/json' })
|
||||||
.to_return(status: status, body: body)
|
.to_return(status: status, body: body)
|
||||||
|
|
|
@ -4,7 +4,7 @@ describe ApiCarto::QuartiersPrioritairesAdapter do
|
||||||
subject { described_class.new(coordinates).results }
|
subject { described_class.new(coordinates).results }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
stub_request(:post, "https://apicarto.sgmap.fr/quartiers-prioritaires/search")
|
stub_request(:post, "https://sandbox.geo.api.gouv.fr/apicarto/quartiers-prioritaires/search")
|
||||||
.with(:body => /.*/,
|
.with(:body => /.*/,
|
||||||
:headers => { 'Content-Type' => 'application/json' })
|
:headers => { 'Content-Type' => 'application/json' })
|
||||||
.to_return(status: status, body: body)
|
.to_return(status: status, body: body)
|
||||||
|
|
Loading…
Reference in a new issue