May-30-2023, 08:28 PM
Hi everyone, i hiope someone can help me .
I have recently started working on a huge pytest framework with about 15000 tests .
However, there seems to be some issue wiuth a mock that is hanging about and thus being called in tests it is not supposed to be.
can someone please tell me how do I:
1. get a list of all active mocks currentyl in my memory space and what they are mocking
2. is ther a way to blanket destroy all active mocks in memory and start from a blank slate (ie in a pytest fixture)
any advice or help would be most appreciated on this.
thanks
Anthony
I have recently started working on a huge pytest framework with about 15000 tests .
However, there seems to be some issue wiuth a mock that is hanging about and thus being called in tests it is not supposed to be.
can someone please tell me how do I:
1. get a list of all active mocks currentyl in my memory space and what they are mocking
2. is ther a way to blanket destroy all active mocks in memory and start from a blank slate (ie in a pytest fixture)
any advice or help would be most appreciated on this.
thanks
Anthony