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

Module gets imported (hence executed) twice #357

Open
smarie opened this issue Nov 19, 2024 · 0 comments
Open

Module gets imported (hence executed) twice #357

smarie opened this issue Nov 19, 2024 · 0 comments

Comments

@smarie
Copy link
Owner

smarie commented Nov 19, 2024

If a test file contains both an absolute import and a relative import in parametrize_with_cases

"""This is module foo.test_bar"""
from foo.bar_data import Var

@parametrize_with_cases("a", cases=".bar_data ")
def test_bar(a):
    pass

Then module foo.bar_data is imported twice.

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

1 participant