Skip to content

Errors when running the test suite #11

@alvarocavalcanti

Description

@alvarocavalcanti

I tried running the test suite but got all the following errors:

running test
running egg_info
writing hoverpy.egg-info/PKG-INFO
writing dependency_links to hoverpy.egg-info/dependency_links.txt
writing requirements to hoverpy.egg-info/requires.txt
writing top-level names to hoverpy.egg-info/top_level.txt
reading manifest file 'hoverpy.egg-info/SOURCES.txt'
writing manifest file 'hoverpy.egg-info/SOURCES.txt'
running build_ext
testModify (hoverpy.tests.modify.testModify.TestModify) ... /Users/alvarocavalcanti/Projects/hoverpy/hoverpy/tests/modify/testModify.py:16: ResourceWarning: unclosed <socket.socket fd=7, family=AddressFamily.AF_INET6, type=SocketKind.SOCK_STREAM, proto=6, laddr=('::1', 52975, 0, 0), raddr=('::1', 8888, 0, 0)>
  self.assertIn("modified!", r.text)
ok
testTemplate (hoverpy.tests.templates.testTemplates.TestTemplates) ... ok
testCapture (hoverpy.tests.testVirtualisation.TestVirt) ... /Users/alvarocavalcanti/Projects/hoverpy/.venv/lib/python3.6/site-packages/requests-2.19.1-py3.6.egg/requests/exceptions.py:25: ResourceWarning: unclosed <socket.socket fd=7, family=AddressFamily.AF_INET6, type=SocketKind.SOCK_STREAM, proto=6, laddr=('::1', 52982, 0, 0), raddr=('::1', 8888, 0, 0)>
  super(RequestException, self).__init__(*args, **kwargs)
ERROR
testDecorators (hoverpy.tests.testVirtualisation.TestVirt) ... ERROR
testPlayback (hoverpy.tests.testVirtualisation.TestVirt) ... /usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/email/feedparser.py:475: ResourceWarning: unclosed <socket.socket fd=8, family=AddressFamily.AF_INET6, type=SocketKind.SOCK_STREAM, proto=6, laddr=('::1', 52994, 0, 0), raddr=('::1', 8888, 0, 0)>
  for lineno, line in enumerate(lines):
ERROR
/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/case.py:633: ResourceWarning: unclosed <socket.socket fd=9, family=AddressFamily.AF_INET6, type=SocketKind.SOCK_STREAM, proto=6, laddr=('::1', 53001, 0, 0), raddr=('::1', 8888, 0, 0)>
  outcome.errors.clear()

======================================================================
ERROR: testCapture (hoverpy.tests.testVirtualisation.TestVirt)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/alvarocavalcanti/Projects/hoverpy/hoverpy/tests/testVirtualisation.py", line 15, in testCapture
    j = r.json()
  File "/Users/alvarocavalcanti/Projects/hoverpy/.venv/lib/python3.6/site-packages/requests-2.19.1-py3.6.egg/requests/models.py", line 896, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

======================================================================
ERROR: testDecorators (hoverpy.tests.testVirtualisation.TestVirt)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/alvarocavalcanti/Projects/hoverpy/hoverpy/tests/testVirtualisation.py", line 55, in testDecorators
    epoch = testCapture()
  File "/Users/alvarocavalcanti/Projects/hoverpy/hoverpy/decorators.py", line 13, in wrapped_f
    return f(*args)
  File "/Users/alvarocavalcanti/Projects/hoverpy/hoverpy/tests/testVirtualisation.py", line 42, in testCapture
    j = r.json()
  File "/Users/alvarocavalcanti/Projects/hoverpy/.venv/lib/python3.6/site-packages/requests-2.19.1-py3.6.egg/requests/models.py", line 896, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

======================================================================
ERROR: testPlayback (hoverpy.tests.testVirtualisation.TestVirt)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/alvarocavalcanti/Projects/hoverpy/hoverpy/tests/testVirtualisation.py", line 26, in testPlayback
    self.assertEquals(r1.json()["epoch"], r2.json()["epoch"])
  File "/Users/alvarocavalcanti/Projects/hoverpy/.venv/lib/python3.6/site-packages/requests-2.19.1-py3.6.egg/requests/models.py", line 896, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

----------------------------------------------------------------------
Ran 5 tests in 1.434s

FAILED (errors=3)
Test failed: <unittest.runner.TextTestResult run=5 errors=3 failures=0>
error: Test failed: <unittest.runner.TextTestResult run=5 errors=3 failures=0>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions