Esempio n. 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()
Esempio n. 2
0
def test_fileHierarchy():
    p = helpers.Parser()
    parsedFiles = p.fileHierarchy(MockedFiles._mockFileList())

    assert parsedFiles == MockedFiles._mockParsedFileList()
Esempio n. 3
0
 def mock_gather_work_items_return_file_list(*args, **kwargs):
     return MockedFiles._mockFileList()
Esempio n. 4
0
 def mockGatherWorkItemsReturnFileList(*args, **kwargs):
     return MockedFiles._mockFileList()