Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pytest mocks
#1
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pytest Installed, but VS Code Won’t Access Pytest AstralWeeks 9 3,364 Sep-13-2023, 03:00 PM
Last Post: AstralWeeks
  Pytest and rootdirectory Master_Sergius 4 4,700 Jun-01-2020, 05:05 PM
Last Post: Master_Sergius
  Pytest with requests a21250450 3 2,781 Mar-21-2019, 03:24 PM
Last Post: buran
  pytest and caplog lazyliv 0 3,083 May-16-2018, 02:36 PM
Last Post: lazyliv

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020