Skip to content

Commit

Permalink
Add test gh-287
Browse files Browse the repository at this point in the history
  • Loading branch information
jmathai committed Dec 4, 2018
1 parent 02468c2 commit 51d2d01
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions elodie/tests/elodie_test.py
Expand Up @@ -251,6 +251,22 @@ def test_import_destination_in_source():

assert dest_path is None, dest_path

def test_import_destination_in_source_gh_287():
temporary_folder, folder = helper.create_working_folder()
folder_destination = '{}-destination'.format(folder)
os.mkdir(folder_destination)

origin = '%s/video.mov' % folder
shutil.copyfile(helper.get_file('video.mov'), origin)

helper.reset_dbs()
dest_path = elodie.import_file(origin, folder_destination, False, False, False)
helper.restore_dbs()

shutil.rmtree(folder)

assert dest_path is not None, dest_path

def test_import_invalid_file_exit_code():
temporary_folder, folder = helper.create_working_folder()
temporary_folder_destination, folder_destination = helper.create_working_folder()
Expand Down

0 comments on commit 51d2d01

Please sign in to comment.