![]() |
Pytest mocks - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Pytest mocks (/thread-40083.html) |
Pytest mocks - anthonyrmoss78 - May-30-2023 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 |