Monkeypatching Pytest Pytest Mock Python How To Remove A Library With Monkeypatch Or Mock In Pytest? May 11, 2024 Post a Comment If my library has a contrib extra that has dependencies in it (say requests) that I want users to h… Read more How To Remove A Library With Monkeypatch Or Mock In Pytest?
Monkeypatching Pytest Python Monkeypatching Not Carrying Through Class Import December 25, 2023 Post a Comment I'm trying to test some code using pytest and need to change a function from some module. One o… Read more Monkeypatching Not Carrying Through Class Import
Monkeypatching Pytest Pytest Asyncio Python Python Asyncio Testing Asyncio With Pytest: How To Test A Try-except Block By Mocking The Event Loop? December 14, 2023 Post a Comment In a source code (source link here and WIP PR here) I am working with, I am trying to improve test … Read more Testing Asyncio With Pytest: How To Test A Try-except Block By Mocking The Event Loop?
Lxml Mocking Monkeypatching Python Really Weird... Can't Set Attributes Of Built-in/extension Type 'lxml.etree._element' November 21, 2023 Post a Comment I've changed attributes for other classes before without issues. _Element is obviously not a bu… Read more Really Weird... Can't Set Attributes Of Built-in/extension Type 'lxml.etree._element'