- Notifications
You must be signed in to change notification settings - Fork 307
Description
If the testsuite is executed in a native build environment (= not in a virtualenv via tox) by issuing pytest it fails with:
ImportError while loading conftest '/wrkdirs/usr/ports/devel/py-oci/work-py36/oci-python-sdk-2.3.1/tests/conftest.py'. tests/conftest.py:8: in <module> from tests.integ import util tests/integ/util.py:12: in <module> from .. import test_config_container tests/test_config_container.py:8: in <module> from . import vcr_mods # noqa: F401 E ImportError: cannot import name 'vcr_mods' The testsuite will pass when the vcr_mods subdirectory from https://github.com/oracle/oci-cli/tree/master/tests/vcr_mods is copied to tests/:
=========== short test summary info ========== SKIPPED [14] /wrkdirs/usr/ports/devel/py-oci/work-py36/oci-python-sdk-2.3.1/tests/conftest.py:41: Config file, /wrkdirs/usr/ports/devel/py-oci/work-py36/oci-python-sdk-2.3.1/tests/resources/config, does not exist ===== 20 passed, 14 skipped in 4.23 seconds ===== 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 to setup.py:
pytestrequestsvcrpy
It would be also nice to package the tests/ directory for the sdist so it would be available also via PyPI.
Environment:
- OS: FreeBSD 11.2-, 11.3-, 12.0-RELEASE
- Python Version: 2.7.16, 3.6.9
asagratini
Metadata
Metadata
Assignees
Labels
No labels