-
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
Fix issue #9 - parameterization of dependency tests #33
base: master
Are you sure you want to change the base?
Conversation
… and will remain in failed state if failed once
The failed test seems to be related to a change in Pytest between some versions where it will say "SKIP" and newer versions will say SKIPPED. Everything works fine - it seems to be more of an issue with the test then with the PR. |
Yes, the issue with "SKIP" versus "SKIPPED" is a change in pytest 4.2.0 that causes test_03_skipmsgs.py to fail. I already did notice that, but I didn't got around to fix it yet. At least, I opened an issue now, see #34. |
sounds good. I am still having issues with this so I will continue working and reopen this |
Btw, I didn't had a detailed look into what you are trying to do in |
Actually , my solution was to add the original name of the node to the results dictionary - such that you can reference it in depends and also reference the name of the nodes with parameters (eg., node[param, param] ) without interruption within the same module. the only bug is that I need to fix (i think I just did) to make sure that one failure of the original-name node will STICK and never update as PASSED during the module test run. |
If you are ok with this - I would write some tests for this in a future PR, with your permission of course. |
Interesting idea. I have to think about that. As suggested, I'm somewhat busy right now, so I can't make promises when I will check that in detail. |
No problem :) this is mainly for my own project but i think others will benefit as well. A bit hacky but it works fine now ;p |
class TestPyDep:
^ first five tests (2 first tests) will run - last tests skipped.class TestPyDep:
^ 1 failed, 2 passed, 4 skipped |
Is this something that works? Is there a possibility it could be merged? |
I am using it in production since posting it - and it does pass acceptance
tests etc. feel free to try it out - you can find the forked version in my
repositories
…On Sun, 31 May 2020 at 22:30, DevilXD ***@***.***> wrote:
Is this something that works? Is there a possibility it could be merged?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#33 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJUW6AYRGXRTLJONMXV47WLRUKV45ANCNFSM4G43NMNA>
.
|
Instead of using a helper function or a parameter - the original name of the node will be kept in the list of tests to check when using the depend=[] feature. If the function fails at one of its parameterized runs the node will remain in a failed state. Should there not be any parameterization there will not be any duplicate to check.