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() + +@check('vcr', 'vcr http mocking library') +def has_vcr(): + try: + import vcr + vcr.VCR + return True + except (ImportError, AttributeError): + pass + return False