Closed
Description
FreeBSD ports system uses the distfile from pypi. When running test on python-gitlab with the dist file from pypi it appears gitlab/tests/json.data isn't included.
...
test_todo (gitlab.tests.test_gitlab.TestGitlab) ... ERROR
...
======================================================================
ERROR: test_todo (gitlab.tests.test_gitlab.TestGitlab)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/wrkdirs/usr/ports/devel/py-python-gitlab/work-py36/python-gitlab-1.12.1/gitlab/tests/test_gitlab.py", line 676, in test_todo
todo_content = open(os.path.dirname(__file__) + "/data/todo.json", "r").read()
FileNotFoundError: [Errno 2] No such file or directory: '/wrkdirs/usr/ports/devel/py-python-gitlab/work-py36/python-gitlab-1.12.1/gitlab/tests/data/todo.json'
Ran 103 tests in 0.510s
FAILED (errors=1)
Test failed: <unittest.runner.TextTestResult run=103 errors=1 failures=0>
error: Test failed: <unittest.runner.TextTestResult run=103 errors=1 failures=0>
*** Error code 1
Manually placing the file allows all tests to pass.
Metadata
Metadata
Assignees
Labels
No labels