Relative Content

Tag Archive for pythonunit-testingclasstestingpytest

Testing static methods with pytest

I am trying to test the write_nodes static method from PrunedGraphWriter (please see below). The original function copies files (nodes) from one dir to another, whereas the mocked function just checks that the nodes to be written are what I expect in the test case.