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

The module relative order don't working??? #65

Open
jekoie opened this issue Jul 16, 2020 · 0 comments
Open

The module relative order don't working??? #65

jekoie opened this issue Jul 16, 2020 · 0 comments

Comments

@jekoie
Copy link

jekoie commented Jul 16, 2020

this module don't working?

import pytest
@pytest.mark.run(after='test_second')
def test_third():
    assert True

def test_second():
    assert True

@pytest.mark.run(before='test_second')
def test_first():
    assert True

The order don't change all ???

E:\QT-learn>pytest -svv
============================================================================= test session starts =============================================================================
platform win32 -- Python 3.7.4, pytest-5.4.3, py-1.9.0, pluggy-0.13.1 -- c:\users\jekoie\appdata\local\programs\python\python37-32\python.exe
cachedir: .pytest_cache
rootdir: E:\QT-learn, inifile: pytest.ini
plugins: ordering-0.6
collected 3 items                                                                                                                                                              

test_qt.py::test_third PASSED
test_qt.py::test_second PASSED
test_qt.py::test_first PASSED

============================================================================== 3 passed in 0.04s ==============================================================================

E:\QT-learn>

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

Successfully merging a pull request may close this issue.

1 participant