Skip to content

Commit

Permalink
file_tool test of copy_all_files_folders
Browse files Browse the repository at this point in the history
  • Loading branch information
acutesoftware committed Jan 30, 2017
1 parent 9e77807 commit 077ce38
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/test_toolbox_file_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,14 @@ def test_05_copy_files_to_folder(self):

def test_07_copy_all_files_and_subfolders(self):
#self.assertEqual(os.path.exists(temp_fldr + os.sep + 'test_toolbox_file_tools.py'), False)
pass
# TODO - fix this, copies too many files on travis-ci
#file_tools.copy_all_files_and_subfolders(os.getcwd(), temp_fldr, os.getcwd(), ['*.py'])
#self.assertEqual(os.path.exists(temp_fldr + os.sep + 'test_toolbox_file_tools.py'), True)
file_tools.copy_all_files_and_subfolders(src_fldr, dest_fldr, dest_fldr, ['*.txt'])
self.assertEqual(os.path.exists(dest_fldr + os.sep + 'file1.txt'), True)

# there will be the 9 files backed up plus the CSV list
fl7 = file_tools.get_filelist(dest_fldr)
self.assertEqual(len(fl7), 10)



def test_12_delete_files_in_folder(self):
# file doesn't exist, show an error to console, but pass test
Expand Down

0 comments on commit 077ce38

Please sign in to comment.