[pytest-dev] How to duplicate pytest.Item inside function 'pytest_collection_modifyitems'?

Anton Shiban kantonshiban at gmail.com
Tue Apr 14 17:46:45 EDT 2020


Hi,


Can you please guide me *how to* *clone pytest.Item?*

I want to take one *item* from *items* array (inside function
‘pytest_collection_modifyitems’) and clone that *item* and add it to *items*
array back.

Can someone please guide to do this?


Thanks,

Shiban.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pytest-dev/attachments/20200415/5800116e/attachment.html>


More information about the pytest-dev mailing list