Looks like a neat solution. However, maybe I am overlooking something in my implementation in my code, but it does not seem to go well with running pytest itself with CL arguments (e.g. the super-handy '--lf'). Seems to try to parse those then as well and throws an exception.
So sorry to miss your comment so long ago! Thank you so much for the pytest-console-scripts recommendation. I may incorporate that back into the article, if that is OK with you.
Looks like a neat solution. However, maybe I am overlooking something in my implementation in my code, but it does not seem to go well with running pytest itself with CL arguments (e.g. the super-handy '--lf'). Seems to try to parse those then as well and throws an exception.
What speaks again simply using pytest-console-scripts (pypi.org/project/pytest-console-sc...) instead? Worked out of the box for my case.
So sorry to miss your comment so long ago! Thank you so much for the pytest-console-scripts recommendation. I may incorporate that back into the article, if that is OK with you.
Sure! No need to even ask if it will help people :)