Mercurial > hg-stable
diff hgext/clonebundles.py @ 42295:af13e2088f77
phabricator: add custom vcr matcher to match request bodies
Currently when the phabricator extension's conduit output changes the tests
don't notice since the default vcr matcher only matches on 'method' and 'uri',
not the body.
Add a custom matcher that checks the same params are in the body (ignoring
ordering).
vcr's in-built body matcher can't be used since it fails under py3 with a
"UnicodeEncodeError" on the "€ in commit message" tests.
The DREV ids have decreased since the recordings were generated against a
different phabricator instance to avoid spamming mercurial-devel.
Differential Revision: https://phab.mercurial-scm.org/D6347
author | Ian Moody <moz-ian@perix.co.uk> |
---|---|
date | Sun, 05 May 2019 17:04:48 +0100 |
parents | b4d85bc122bd |
children | 2372284d9457 |