SpectoLabs / hoverpy

Python library for Hoverfly (now obsolete)
Apache License 2.0
79 stars 9 forks source link

No JSON object could be decoded when running $ python setup.py test #9

Open rchoudh2 opened 7 years ago

rchoudh2 commented 7 years ago

On Windows 10, with Python 2.7.14 installed, while running $ python setup.py test command, it throws the following error: ValueError: No JSON object could be decoded

Traceback (most recent call last): File "c:\python27\lib\site-packages\hoverpy\hoverpy\hoverpy\tests\testVirtualisation.py", line 55, in testDecorators epoch = testCapture() File "c:\python27\lib\site-packages\hoverpy\hoverpy\hoverpy\decorators.py", line 13, in wrapped_f return f(*args) File "c:\python27\lib\site-packages\hoverpy\hoverpy\hoverpy\tests\testVirtualisation.py", line 42, in testCapture j = r.json() File "C:\Python27\lib\site-packages\requests\models.py", line 812, in json return complexjson.loads(self.text, **kwargs) File "C:\Python27\lib\json__init__.py", line 339, in loads return _default_decoder.decode(s) File "C:\Python27\lib\json\decoder.py", line 364, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Python27\lib\json\decoder.py", line 382, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded