Beispiel #1
0
def test_set_album_from_folder_invalid_file():
    temporary_folder, folder = helper.create_working_folder()

    base_file = helper.get_file('invalid.jpg')
    origin = '%s/invalid.jpg' % folder

    shutil.copyfile(base_file, origin)

    base = Base(origin)

    status = base.set_album_from_folder()

    assert status == False, status
Beispiel #2
0
def test_set_album_from_folder_invalid_file():
    temporary_folder, folder = helper.create_working_folder()

    base_file = helper.get_file('invalid.jpg')
    origin = '%s/invalid.jpg' % folder

    shutil.copyfile(base_file, origin)

    base = Base(origin)

    status = base.set_album_from_folder()

    assert status == False, status
Beispiel #3
0
def test_get_class_by_file_without_extension():
    base_file = helper.get_file('withoutextension')

    cls = Base.get_class_by_file(base_file, [Audio, Text, Photo, Video])
    
    assert cls is None, cls
Beispiel #4
0
def test_get_class_by_file_without_extension():
    base_file = helper.get_file('withoutextension')

    cls = Base.get_class_by_file(base_file, [Audio, Text, Photo, Video])

    assert cls is None, cls