Project

General

Profile

Bug #37910

bidon: GET https://extranet.strasbourg.eu/wtgdema-m/api/request/365563 (=> 404)

Added by sentry io 8 months ago. Updated 6 months ago.

Status:
Nouveau
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
25 Nov 2019
Due date:
% Done:

0%

Patch proposed:
No
Planning:
No

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/191/

GET https://extranet.strasbourg.eu/wtgdema-m/api/request/365563 (=> 404)

History

#1 Updated by Nicolas Roche 6 months ago

  • Project changed from Suivi des traces to Passerelle

Je n'arrive pas à le reproduire, c'est déjà corrigé ?

diff --git a/tests/test_gdema.py b/tests/test_gdema.py
index 0d124fca..be535f02 100644
--- a/tests/test_gdema.py
+++ b/tests/test_gdema.py
@@ -142,4 +142,11 @@ def test_gdema_get_request(app, gdema):
     endpoint = utils.generic_endpoint_url('gdema', 'get-request', slug=gdema.slug)
     assert endpoint == '/gdema/test/get-request'
+
+    with mock.patch('passerelle.utils.Request.get') as requests_get:
+        requests_get.return_value = utils.FakedResponse(content='',
+                                                        status_code=404)
+        resp = app.get(endpoint + '/1/', status=200)
+
+
     with mock.patch('passerelle.utils.Request.get') as requests_get:
         requests_get.return_value = utils.FakedResponse(content=REQUEST,

Also available in: Atom PDF