-
Notifications
You must be signed in to change notification settings - Fork 280
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 fails if run independently outside of a virtualenv #164
Comments
Hi @knobix , thanks for reporting the issue. Running SDK in virtual env is recommended as all of our tests/builds/verifications are done in that way, hence you will get more coverage if follow the installation guide here: https://github.com/oracle/oci-python-sdk#installation I am trying to understand is there any reason not use virtual environment for it? |
Hi @jasonyin , thank you for your info. Indeed, I'm aware of the fact that virtualenv is the recommended way as described in https://github.com/oracle/oci-python-sdk#installation . Testing/Using the SDK outside a virtualenv gives downstream packagers the possibility to do proper QA to test the SDK against Python packages that are shipped locally. In my case the Python SDK was added to the FreeBSD ports collection recently and as with many Python ports there it depends/uses local packages. |
Got it. we will triage/prioritize this issue and will update you here, thanks! |
The test suite fails even inside a virtual environment. There aren't any references to the module |
I encountered this while trying to package oci-python-sdk for Debian, would appreciate a fix for this. In the meantime I will apply the patch in #253 to remove it. |
Same for packaging in Fedora. Thanks for the temporary patch. 🫂 |
If the testsuite is executed in a native build environment (= not in a virtualenv via
tox
) by issuingpytest
it fails with:The testsuite will pass when the
vcr_mods
subdirectory from https://github.com/oracle/oci-cli/tree/master/tests/vcr_mods is copied totests/
:As far I can see only the following additional requirements are needed to get a successful run of the testsuite, so they could be added e.g. as
tests_requires
tosetup.py
:pytest
requests
vcrpy
It would be also nice to package the
tests/
directory for the sdist so it would be available also via PyPI.Environment:
The text was updated successfully, but these errors were encountered: