Пример #1
0
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()
Пример #2
0
def test_fileHierarchy():
    p = helpers.Parser()
    parsedFiles = p.fileHierarchy(MockedFiles._mockFileList())

    assert parsedFiles == MockedFiles._mockParsedFileList()
Пример #3
0
 def mock_gather_work_items_return_file_list(*args, **kwargs):
     return MockedFiles._mockFileList()
Пример #4
0
 def mockGatherWorkItemsReturnFileList(*args, **kwargs):
     return MockedFiles._mockFileList()