[Python] What is the best way to get current rootpath of tests for pytest

Discussão em 'Python' iniciado por Stack, Maio 8, 2025.

  1. Stack

    Stack Membro Participativo

    From the discussion.

    I found how to change the assert rewriting via _early_rewrite_bailout function. From here, I can found rootdir via os.getcwd(). May be there is a better way to do this?

    Continue reading...

Compartilhe esta Página