def test_missing_files_check(dir2, ttorrent, wind):
    'Test missing files checker proceduire.'
    (window, _) = wind
    checktab = window.central.checkWidget
    window.central.setCurrentWidget(checktab)
    dirpath = Path(dir2)
    for item in dirpath.iterdir():
        if item.is_file():
            os.remove(item)
    checktab.fileInput.setText(ttorrent)
    checktab.searchInput.setText(dir2)
    checktab.checkButton.click()
    assert (checktab.treeWidget.topLevelItemCount() > 0)
Test missing files checker proceduire.
def test_missing_files_check(dir2, ttorrent, wind):
    
    (window, _) = wind
    checktab = window.central.checkWidget
    window.central.setCurrentWidget(checktab)
    dirpath = Path(dir2)
    for item in dirpath.iterdir():
        if item.is_file():
            os.remove(item)
    checktab.fileInput.setText(ttorrent)
    checktab.searchInput.setText(dir2)
    checktab.checkButton.click()
    assert (checktab.treeWidget.topLevelItemCount() > 0)