Projet

Général

Profil

Development #50467

test vs signature

Ajouté par Frédéric Péters il y a environ 3 ans. Mis à jour il y a environ 3 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
23 janvier 2021
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

Description

        request = new_api_mock.call['requests'][3]
>       assert 'start' not in request.url and 'end' not in request.url
E       AssertionError: assert ('start' not in 'https://aut...oMmN4nLYQ%3D'
E         'start' is contained here:
E           MmN4nLYQ%3D and 'end' not in 'https://aut...oMmN4nLYQ%3D'
E         'end' is contained here:
E           =y5h2eUEVWenduDjhc6lOqYQ1o%2BmYcVfkkdoMmN4nLYQ%3D
E         ?           +++)

Révisions associées

Révision 6b0b6509 (diff)
Ajouté par Frédéric Péters il y a environ 3 ans

tests: parse query string to check if parameter is not present (#50467)

Historique

#1

Mis à jour par Frédéric Péters il y a environ 3 ans

  • Statut changé de Nouveau à Résolu (à déployer)

Poussé une modif pour faire

-    assert 'start' not in request.url and 'end' not in request.url
+    assert 'start' not in urllib.parse.parse_qs(urllib.parse.urlparse(request.url).query)
+    assert 'end' not in urllib.parse.parse_qs(urllib.parse.urlparse(request.url).query)
commit 6b0b6509b12df1f117afa3cc290589617bb1e07d
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Sat Jan 23 12:35:43 2021 +0100

    tests: parse query string to check if parameter is not present (#50467)
#2

Mis à jour par Frédéric Péters il y a environ 3 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF