Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testsuite failure with PyPi sourcecode package #281

Closed
glaubitz opened this issue Oct 18, 2019 · 4 comments
Closed

Testsuite failure with PyPi sourcecode package #281

glaubitz opened this issue Oct 18, 2019 · 4 comments

Comments

@glaubitz
Copy link

Trying to run the testsuite of the PyPi package fails due to the missing module customer_intelligence_client:

[   23s] ======================================================================
[   23s] ERROR: customer_intelligence_client (unittest.loader._FailedTest)
[   23s] ----------------------------------------------------------------------
[   23s] ImportError: Failed to import test module: customer_intelligence_client
[   23s] Traceback (most recent call last):
[   23s]   File "/usr/lib64/python3.7/unittest/loader.py", line 154, in loadTestsFromName
[   23s]     module = __import__(module_name)
[   23s]   File "/home/abuild/rpmbuild/BUILD/vsts-0.1.25/vsts/customer_intelligence/customer_intelligence_client.py", line 11, in <module>
[   23s]     from . import models
[   23s] ImportError: cannot import name 'models' from 'vsts.customer_intelligence' (/home/abuild/rpmbuild/BUILD/vsts-0.1.25/vsts/customer_intelligence/__init__.py)
[   23s] 
[   23s] 
[   23s] ----------------------------------------------------------------------
[   23s] Ran 1 test in 0.006s

The package was downloaded from https://pypi.org/project/vsts/#files

It can be reproduced with python3 setup.py build and python3 setup.py test.

@tedchamb
Copy link
Member

The vsts package has been renamed to azure-devops. Can you try with the following package:

https://pypi.org/project/azure-devops/#files

@tedchamb
Copy link
Member

@glaubitz , I am closing this issue, please reply back if you are having issues with the latest package under the new name, and I will reopen.

@glaubitz
Copy link
Author

Do you know when azure-functions-devops-build is going to be updated to use azure-devops instead of vsts? I just checked and the current 0.0.22 release still depends on vsts.

@glaubitz
Copy link
Author

It seems that azure-devops doesn't come with a testsuite at all.

After checking out from git and building with python3 setup.py build, running python3 setup.py test doesn't run any tests:

glaubitz@suse-laptop:~/upstream/azure-devops-python-api/azure-devops> python3 setup.py test
running test
running egg_info
writing azure_devops.egg-info/PKG-INFO
writing dependency_links to azure_devops.egg-info/dependency_links.txt
writing requirements to azure_devops.egg-info/requires.txt
writing top-level names to azure_devops.egg-info/top_level.txt
reading manifest file 'azure_devops.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'azure_devops.egg-info/SOURCES.txt'
running build_ext

----------------------------------------------------------------------
Ran 0 tests in 0.001s

OK
glaubitz@suse-laptop:~/upstream/azure-devops-python-api/azure-devops>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants