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

3.10.0: pytest fails because incorrect module name #285

Closed
kloczek opened this issue Feb 19, 2024 · 2 comments
Closed

3.10.0: pytest fails because incorrect module name #285

kloczek opened this issue Feb 19, 2024 · 2 comments

Comments

@kloczek
Copy link

kloczek commented Feb 19, 2024

+ /usr/bin/pytest -ra -m 'not network'
============================= test session starts ==============================
platform linux -- Python 3.8.18, pytest-8.0.1, pluggy-1.3.0
rootdir: /home/tkloczko/rpmbuild/BUILD/prettytable-3.10.0
plugins: cov-4.1.0, lazy-fixture-0.6.3
collected 8 items / 1 error

==================================== ERRORS ====================================
__________________ ERROR collecting tests/test_prettytable.py __________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/prettytable-3.10.0/tests/test_prettytable.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_prettytable.py:11: in <module>
    from pytest_lazy_fixtures import lf
E   ModuleNotFoundError: No module named 'pytest_lazy_fixtures'
=========================== short test summary info ============================
ERROR tests/test_prettytable.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.31s ===============================

Looks like it should be s/pytest_lazy_fixtures/pytest_lazyfixtures/ https://github.com/tvorog/pytest-lazy-fixture/

@hugovk
Copy link
Member

hugovk commented Feb 19, 2024

pytest-lazy-fixtures is defined in the tests extra:

[project.optional-dependencies]
tests = [
"pytest",
"pytest-cov",
"pytest-lazy-fixtures",
]

pytest-lazy-fixture was recently changed to pytest-lazy-fixtures in #279.

@hugovk hugovk closed this as not planned Won't fix, can't repro, duplicate, stale Feb 19, 2024
@kloczek
Copy link
Author

kloczek commented Feb 19, 2024

Ha .. lost that last character 😋
Thx 👍

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