Mocking with PyTest: Improving my XML write/parse unit test
问题 So I am rather new with pytest and mock , but still have experience with junit and mocking with mockito for groovy (which comes with an handy when(...).thenAnswer/Return function) I wrote a simple class to parse and write xml files. This class sole purpose for existence is to be mocked in order to unit test the plugin I am currently working on. This personal project is also used as a learning tool to help me in my work duties (devOps python based) Obviously, I needed to test it too. Here is