Want to know currently executing test/class name of pytest from normal py script
-1
Have A.py contains only fixtures and classes related to pytest In A.py , One of fixture calls function which is in B.py (B.py in not an pytest script it's normal py script) In B.py script, want to know and check current test script name /fixture/current class of A.py Based on current test name in A.py I need to execute some instructions in B.py script Is there any solution? Note: I don't want to edit A.py
python pytest
share | improve this question
edited Nov 23 at 7:17
asked Nov 23 at 2:54
...