-
Notifications
You must be signed in to change notification settings - Fork 35
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
Dependency call is skipped by executing test with mark #66
Comments
I'm not sure whether it's the same problem but I have the following behavior: import pytest
@pytest.mark.dependency()
@pytest.mark.parametrize("message", ["hello", "world"])
def test_a(message):
print(message)
assert True
@pytest.mark.dependency(depends=["test_a"])
def test_b():
assert True My output when I run pytest -rsx tests/test_dep.py is
The may be applied sounds optional to me :) However, when I remove the import pytest
@pytest.mark.dependency()
# @pytest.mark.parametrize("message", ["hello", "world"])
# def test_a(message):
def test_a():
assert True
@pytest.mark.dependency(depends=["test_a"])
def test_b():
assert True it works:
Also if Python version: 3.10.5 Thanks for your help! Best regards |
I meet the same problem. |
It seems to me that this project is dead... maybe we should move on ;) |
Test are skipped when trying to execute it with mark.
pipenv run pytest -m C999
tests/cms/test_posts.py::TestArticles::test_2 SKIPPED (test_2 depends on test1) [100%]
The text was updated successfully, but these errors were encountered: