D4598: hghave: add a checker for the vcr HTTP record/replay library

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Sat Sep 15 03:31:27 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGe37a0fcd82c0: hghave: add a checker for the vcr HTTP record/replay library (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4598?vs=11075&id=11087

REVISION DETAIL
  https://phab.mercurial-scm.org/D4598

AFFECTED FILES
  tests/hghave.py

CHANGE DETAILS

diff --git a/tests/hghave.py b/tests/hghave.py
--- a/tests/hghave.py
+++ b/tests/hghave.py
@@ -770,3 +770,13 @@
 @check('repofncache', 'repository has an fncache')
 def has_repofncache():
     return 'fncache' in getrepofeatures()
+
+ at check('vcr', 'vcr http mocking library')
+def has_vcr():
+    try:
+        import vcr
+        vcr.VCR
+        return True
+    except (ImportError, AttributeError):
+        pass
+    return False



To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list