How to determinate if test is skipped on runtest_teardown hook?
Hi All, Is there is possibility to determinate if test is skipped or not on pytest_runtest_teardown hook. I can see skipif marker in item.keywords, but I don't know it's status. Thank you in advance! Anton
Has anybody any ideas about this? Thank you! Anton On Tue, Dec 24, 2013 at 8:09 PM, Anton P <anton7811@gmail.com> wrote:
Hi All,
Is there is possibility to determinate if test is skipped or not on pytest_runtest_teardown hook. I can see skipif marker in item.keywords, but I don't know it's status.
Thank you in advance! Anton
Hi Anton, please checkout the following example (and the one below it): http://pytest.org/latest/example/simple.html#post-process-test-reports-failu... best, holger On Mon, Dec 30, 2013 at 10:36 +0200, Anton P wrote:
Has anybody any ideas about this?
Thank you! Anton
On Tue, Dec 24, 2013 at 8:09 PM, Anton P <anton7811@gmail.com> wrote:
Hi All,
Is there is possibility to determinate if test is skipped or not on pytest_runtest_teardown hook. I can see skipif marker in item.keywords, but I don't know it's status.
Thank you in advance! Anton
_______________________________________________ Pytest-dev mailing list Pytest-dev@python.org https://mail.python.org/mailman/listinfo/pytest-dev
Hi Holger, Thank you for reply! I need to know test result especially on teardown hook to determine if I need to do some actions or not. But I can use makereport hook to set some flag in pytest.config object and verify it on teardown. As I found makereport is called before teardown. Best regards, Anton On Thu, Jan 2, 2014 at 10:14 PM, holger krekel <holger@merlinux.eu> wrote:
Hi Anton,
please checkout the following example (and the one below it):
http://pytest.org/latest/example/simple.html#post-process-test-reports-failu...
best, holger
On Mon, Dec 30, 2013 at 10:36 +0200, Anton P wrote:
Has anybody any ideas about this?
Thank you! Anton
On Tue, Dec 24, 2013 at 8:09 PM, Anton P <anton7811@gmail.com> wrote:
Hi All,
Is there is possibility to determinate if test is skipped or not on pytest_runtest_teardown hook. I can see skipif marker in item.keywords, but I don't know it's status.
Thank you in advance! Anton
_______________________________________________ Pytest-dev mailing list Pytest-dev@python.org https://mail.python.org/mailman/listinfo/pytest-dev
participants (2)
-
Anton P -
holger krekel