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

Such DSL: test_teardown runs in reverse order #430

Open
sb02dev opened this issue Feb 19, 2019 · 1 comment
Open

Such DSL: test_teardown runs in reverse order #430

sb02dev opened this issue Feb 19, 2019 · 1 comment
Labels
bug help wanted Contributions and outside help would be most welcome!

Comments

@sb02dev
Copy link

sb02dev commented Feb 19, 2019

teardown methods are executed inside out which is good (reversed order compared to setups) which is good.
test_teardown methods however run outside in which is wrong...
See example in attached source
test_fixtureorder.py.zip
Part of output of the code:

@setUp main layer
@testSetUp main layer
@testmain
@testTearDown main layer
@setUp layer A
@testSetUp main layer
@testSetUp layer A
@testA
@testTearDown main layer <-- problem is here "testTearDown layer A" should run before
@testTearDown layer A

@sirosen sirosen added the bug label Mar 31, 2019
@sirosen sirosen added the help wanted Contributions and outside help would be most welcome! label Apr 23, 2019
@sirosen
Copy link
Collaborator

sirosen commented Apr 23, 2019

I'm marking this issue as help wanted because I haven't gotten to spend the kind of time on it that it deserves. I spent maybe an hour trying to figure out what was going on a few weeks ago, and an hour is just not nearly enough to get fully versed in the layers plugin.

If anyone has a fix, obviously that would be great, but insights/thoughts would be welcome too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug help wanted Contributions and outside help would be most welcome!
Projects
None yet
Development

No branches or pull requests

2 participants