Page MenuHome

Package Manager: tests fail to run
Open, NormalPublic

Description

System Information
Ubuntu Linux 16.10, virtualenv running Python 3.5.2

BPMA Version
Broken: 2825d0fc061

Short description of error

Running tests.sh fails with the following error:

sybren@ws-sybren ~/workspace/blender-package-manager-addon (git)-[master/]
% ./tests.sh 
EFE
======================================================================
ERROR: test_make_repo (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_make_repo
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/loader.py", line 428, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name
    __import__(name)
  File "/home/sybren/workspace/blender-package-manager-addon/tests/test_make_repo.py", line 8
    import bpkg-repogen
               ^
SyntaxError: invalid syntax


======================================================================
ERROR: test_repo_io (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_repo_io
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/loader.py", line 428, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name
    __import__(name)
  File "/home/sybren/workspace/blender-package-manager-addon/tests/test_repo_io.py", line 7, in <module>
    import bpackage as BP
ImportError: No module named 'bpackage'


======================================================================
FAIL: test_fetch (test_refresh_repos.fetch_url_twice)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/mock.py", line 1159, in patched
    return func(*args, **keywargs)
  File "/home/sybren/workspace/blender-package-manager-addon/tests/test_refresh_repos.py", line 59, in test_fetch
    self.fail('unfinished test')
AssertionError: unfinished test

----------------------------------------------------------------------
Ran 3 tests in 0.001s

FAILED (failures=1, errors=2)

Details

Type
Bug

Event Timeline