From f25b8ccd99cfd61245a77fbea7fbe406cfe30a87 Mon Sep 17 00:00:00 2001 From: Cedric Leporcq Date: Sun, 27 Jun 2021 08:44:22 +0200 Subject: [PATCH] Move samples files to sample dir --- .../Plain With Spaces And Uppercase 123.jpg | Bin {tests/files => samples}/audio.m4a | Bin {tests/files => samples}/imghdr-error.jpg | Bin {tests/files => samples}/invalid.invalid | 0 {tests/files => samples}/invalid.jpg | 0 {tests/files => samples}/no-exif.jpg | Bin {tests/files => samples}/photo.cr2 | Bin {tests/files => samples}/photo.heic | Bin {tests/files => samples}/photo.png | Bin {tests/files => samples}/plain.jpg | Bin .../plugins/googlephotos/auth_file.json | 0 .../plugins/googlephotos/secrets_file.json | 0 {tests/files => samples}/text.txt | 0 {tests/files => samples}/video.mov | Bin .../with-album-and-title-and-location.jpg | Bin {tests/files => samples}/with-album-and-title.jpg | Bin {tests/files => samples}/with-album.jpg | Bin .../with-filename-and-title-in-exif.jpg | Bin {tests/files => samples}/with-filename-in-exif.jpg | Bin .../files => samples}/with-location-and-title.jpg | Bin {tests/files => samples}/with-location-inv.jpg | Bin .../with-location-zero-coordinate.jpg | Bin {tests/files => samples}/with-location.jpg | Bin {tests/files => samples}/with-null-coordinates.jpg | Bin {tests/files => samples}/with-original-name.jpg | Bin {tests/files => samples}/with-title.jpg | Bin {tests/files => samples}/withoutextension | 0 tests/helper.py | 3 +-- 28 files changed, 1 insertion(+), 2 deletions(-) rename {tests/files => samples}/Plain With Spaces And Uppercase 123.jpg (100%) rename {tests/files => samples}/audio.m4a (100%) rename {tests/files => samples}/imghdr-error.jpg (100%) rename {tests/files => samples}/invalid.invalid (100%) rename {tests/files => samples}/invalid.jpg (100%) rename {tests/files => samples}/no-exif.jpg (100%) rename {tests/files => samples}/photo.cr2 (100%) rename {tests/files => samples}/photo.heic (100%) rename {tests/files => samples}/photo.png (100%) rename {tests/files => samples}/plain.jpg (100%) rename {tests/files => samples}/plugins/googlephotos/auth_file.json (100%) rename {tests/files => samples}/plugins/googlephotos/secrets_file.json (100%) rename {tests/files => samples}/text.txt (100%) rename {tests/files => samples}/video.mov (100%) rename {tests/files => samples}/with-album-and-title-and-location.jpg (100%) rename {tests/files => samples}/with-album-and-title.jpg (100%) rename {tests/files => samples}/with-album.jpg (100%) rename {tests/files => samples}/with-filename-and-title-in-exif.jpg (100%) rename {tests/files => samples}/with-filename-in-exif.jpg (100%) rename {tests/files => samples}/with-location-and-title.jpg (100%) rename {tests/files => samples}/with-location-inv.jpg (100%) rename {tests/files => samples}/with-location-zero-coordinate.jpg (100%) rename {tests/files => samples}/with-location.jpg (100%) rename {tests/files => samples}/with-null-coordinates.jpg (100%) rename {tests/files => samples}/with-original-name.jpg (100%) rename {tests/files => samples}/with-title.jpg (100%) rename {tests/files => samples}/withoutextension (100%) diff --git a/tests/files/Plain With Spaces And Uppercase 123.jpg b/samples/Plain With Spaces And Uppercase 123.jpg similarity index 100% rename from tests/files/Plain With Spaces And Uppercase 123.jpg rename to samples/Plain With Spaces And Uppercase 123.jpg diff --git a/tests/files/audio.m4a b/samples/audio.m4a similarity index 100% rename from tests/files/audio.m4a rename to samples/audio.m4a diff --git a/tests/files/imghdr-error.jpg b/samples/imghdr-error.jpg similarity index 100% rename from tests/files/imghdr-error.jpg rename to samples/imghdr-error.jpg diff --git a/tests/files/invalid.invalid b/samples/invalid.invalid similarity index 100% rename from tests/files/invalid.invalid rename to samples/invalid.invalid diff --git a/tests/files/invalid.jpg b/samples/invalid.jpg similarity index 100% rename from tests/files/invalid.jpg rename to samples/invalid.jpg diff --git a/tests/files/no-exif.jpg b/samples/no-exif.jpg similarity index 100% rename from tests/files/no-exif.jpg rename to samples/no-exif.jpg diff --git a/tests/files/photo.cr2 b/samples/photo.cr2 similarity index 100% rename from tests/files/photo.cr2 rename to samples/photo.cr2 diff --git a/tests/files/photo.heic b/samples/photo.heic similarity index 100% rename from tests/files/photo.heic rename to samples/photo.heic diff --git a/tests/files/photo.png b/samples/photo.png similarity index 100% rename from tests/files/photo.png rename to samples/photo.png diff --git a/tests/files/plain.jpg b/samples/plain.jpg similarity index 100% rename from tests/files/plain.jpg rename to samples/plain.jpg diff --git a/tests/files/plugins/googlephotos/auth_file.json b/samples/plugins/googlephotos/auth_file.json similarity index 100% rename from tests/files/plugins/googlephotos/auth_file.json rename to samples/plugins/googlephotos/auth_file.json diff --git a/tests/files/plugins/googlephotos/secrets_file.json b/samples/plugins/googlephotos/secrets_file.json similarity index 100% rename from tests/files/plugins/googlephotos/secrets_file.json rename to samples/plugins/googlephotos/secrets_file.json diff --git a/tests/files/text.txt b/samples/text.txt similarity index 100% rename from tests/files/text.txt rename to samples/text.txt diff --git a/tests/files/video.mov b/samples/video.mov similarity index 100% rename from tests/files/video.mov rename to samples/video.mov diff --git a/tests/files/with-album-and-title-and-location.jpg b/samples/with-album-and-title-and-location.jpg similarity index 100% rename from tests/files/with-album-and-title-and-location.jpg rename to samples/with-album-and-title-and-location.jpg diff --git a/tests/files/with-album-and-title.jpg b/samples/with-album-and-title.jpg similarity index 100% rename from tests/files/with-album-and-title.jpg rename to samples/with-album-and-title.jpg diff --git a/tests/files/with-album.jpg b/samples/with-album.jpg similarity index 100% rename from tests/files/with-album.jpg rename to samples/with-album.jpg diff --git a/tests/files/with-filename-and-title-in-exif.jpg b/samples/with-filename-and-title-in-exif.jpg similarity index 100% rename from tests/files/with-filename-and-title-in-exif.jpg rename to samples/with-filename-and-title-in-exif.jpg diff --git a/tests/files/with-filename-in-exif.jpg b/samples/with-filename-in-exif.jpg similarity index 100% rename from tests/files/with-filename-in-exif.jpg rename to samples/with-filename-in-exif.jpg diff --git a/tests/files/with-location-and-title.jpg b/samples/with-location-and-title.jpg similarity index 100% rename from tests/files/with-location-and-title.jpg rename to samples/with-location-and-title.jpg diff --git a/tests/files/with-location-inv.jpg b/samples/with-location-inv.jpg similarity index 100% rename from tests/files/with-location-inv.jpg rename to samples/with-location-inv.jpg diff --git a/tests/files/with-location-zero-coordinate.jpg b/samples/with-location-zero-coordinate.jpg similarity index 100% rename from tests/files/with-location-zero-coordinate.jpg rename to samples/with-location-zero-coordinate.jpg diff --git a/tests/files/with-location.jpg b/samples/with-location.jpg similarity index 100% rename from tests/files/with-location.jpg rename to samples/with-location.jpg diff --git a/tests/files/with-null-coordinates.jpg b/samples/with-null-coordinates.jpg similarity index 100% rename from tests/files/with-null-coordinates.jpg rename to samples/with-null-coordinates.jpg diff --git a/tests/files/with-original-name.jpg b/samples/with-original-name.jpg similarity index 100% rename from tests/files/with-original-name.jpg rename to samples/with-original-name.jpg diff --git a/tests/files/with-title.jpg b/samples/with-title.jpg similarity index 100% rename from tests/files/with-title.jpg rename to samples/with-title.jpg diff --git a/tests/files/withoutextension b/samples/withoutextension similarity index 100% rename from tests/files/withoutextension rename to samples/withoutextension diff --git a/tests/helper.py b/tests/helper.py index 91d787a..ac01303 100644 --- a/tests/helper.py +++ b/tests/helper.py @@ -50,8 +50,7 @@ def get_file(name): return file_path def get_file_path(name): - current_folder = os.path.dirname(os.path.realpath(__file__)) - return os.path.join(current_folder, 'files', name) + return os.path.join(ELODIE_PATH, 'samples', name) def get_test_location(): return (61.013710, 99.196656, 'Siberia')