Relative Content

Tag Archive for pythonpython-unittestpython-dataclassespython-mock

How to test calls of a mocked dataclass in Python?

I want to write a unit test to a function which instantiates twice a dataclass followed by calling its method. However, the actual calls of the instantiation includes the calling of the method. This is confusing to me.