ktosiek / pytest-vcr

Py.test integration with VCR.py
MIT License
150 stars 25 forks source link

1.0.2: pytest is failing #51

Open kloczek opened 2 years ago

kloczek commented 2 years ago

I'm trying to package your module as an rpm package. So I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.

Looks like it is some issue with collecting units. Here is pytest output:

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-pytest-vcr-1.0.2-13.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-pytest-vcr-1.0.2-13.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/pytest-vcr-1.0.2
plugins: vcr-1.0.2
collected 0 items / 1 error

================================================================================== ERRORS ==================================================================================
____________________________________________________________________ ERROR collecting tests/test_vcr.py ____________________________________________________________________
tests/test_vcr.py:7: in <module>
    assert pytest.config.pluginmanager.hasplugin("vcr")
/usr/lib/python3.8/site-packages/pytest/__init__.py:165: in __getattr__
    raise AttributeError(f"module {__name__} has no attribute {name}")
E   AttributeError: module pytest has no attribute config
========================================================================= short test summary info ==========================================================================
ERROR tests/test_vcr.py - AttributeError: module pytest has no attribute config
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================================= 1 error in 0.08s =============================================================================
kloczek commented 1 year ago

ping ..

kloczek commented 5 months ago

Gentle ping again 🤔