10000 1.12.1 pypi dist file doesn't include gitlab/tests/json.data · Issue #907 · python-gitlab/python-gitlab · GitHub
[go: up one dir, main page]

Skip to content
1.12.1 pypi dist file doesn't include gitlab/tests/json.data #907
Closed
@derekschrock

Description

@derekschrock

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

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

      0