def test_gatherWorkItems(monkeypatch): def mockGatherWorkItemsReturnFileList(*args, **kwargs): return MockedFiles._mockFileList() monkeypatch.setattr(helpers.FileSystem, "getFiles", mockGatherWorkItemsReturnFileList) backlog = helpers.Backlog() assert backlog._gatherWorkItems('.') == MockedFiles._mockFileList()
def test_fileHierarchy(): p = helpers.Parser() parsedFiles = p.fileHierarchy(MockedFiles._mockFileList()) assert parsedFiles == MockedFiles._mockParsedFileList()
def mock_gather_work_items_return_file_list(*args, **kwargs): return MockedFiles._mockFileList()
def mockGatherWorkItemsReturnFileList(*args, **kwargs): return MockedFiles._mockFileList()