Moved test module into root catalog of the project.
|
Before Width: | Height: | Size: 7.8 KiB |
|
Before Width: | Height: | Size: 9.5 KiB |
|
Before Width: | Height: | Size: 9.0 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 7.4 KiB |
@@ -1,44 +0,0 @@
|
||||
|
||||
|== INFO ON TEST IMAGES ==|
|
||||
|
||||
Unless stated otherwise, all images come from Wikipedia Commons - http://commons.wikimedia.org
|
||||
For author and license information please refer to their respective description pages.
|
||||
|
||||
All images were scaled down using the GIMP v 2.4.5 since all we care about is the Exif info.
|
||||
Tested before and after scaling to ensure Exif data was not modified (except for 'software' field).
|
||||
|
||||
|
||||
== Filename == == Wiki Filename ==
|
||||
|
||||
= Camera Makes and Models =
|
||||
Canon_40D.jpg Iguana_iguana_male_head.jpg
|
||||
Canon_40D_photoshop_import.jpg Anolis_equestris_-_bright_close_3-4.jpg
|
||||
Canon_DIGITAL_IXUS_400.jpg Ducati749.jpg
|
||||
Fujifilm_FinePix6900ZOOM.jpg Hylidae_cinerea.JPG
|
||||
Fujifilm_FinePix_E500.jpg VlaamseGaaiVeertje1480.JPG
|
||||
Kodak_CX7530.jpg Red-headed_Rock_Agama.jpg
|
||||
Konica_Minolta_DiMAGE_Z3.jpg Knechtova01.jpg
|
||||
Nikon_COOLPIX_P1.jpg Miyagikotsu-castle6861.JPG
|
||||
Nikon_D70.jpg Anolis_carolinensis_brown.jpg
|
||||
Olympus_C8080WZ.jpg Pterois_volitans_Manado-e.jpg
|
||||
Panasonic_DMC-FZ30.jpg Rømø_-_St.Klement_-_Kanzel_3.jpg
|
||||
Pentax_K10D.jpg Mrs._Herbert_Stevens_May_2008.jpg
|
||||
Ricoh_Caplio_RR330.jpg Steveston_dusk.JPG
|
||||
Samsung_Digimax_i50_MP3.jpg Villa_di_Poggio_a_Caiano,_sala_neoclassica_4.JPG
|
||||
Sony_HDR-HC3.jpg Positive_roll_film.jpg
|
||||
WWL_(Polaroid)_ION230.jpg PoudriereBoisSousRoche3.jpg
|
||||
|
||||
= Other Stuff =
|
||||
long_description.jpg US_10th_Mountain_Division_soldiers_in_Afghanistan.jpg
|
||||
|
||||
|
||||
|
||||
Contributions :
|
||||
|
||||
PaintTool_sample.jpg -- Submitted by Jan Trofimov (OXIj)
|
||||
|
||||
|
||||
If you come across an image which is incorrectly parsed or errors out, consider
|
||||
contributing it to the test cases : ianare@gmail.com
|
||||
|
||||
|
||||
@@ -14,13 +14,13 @@ import glob
|
||||
def setup_path():
|
||||
"""Sets up the python include paths to include needed directories"""
|
||||
this_path = path.abspath(path.dirname(__file__))
|
||||
sys.path = [path.join(this_path, "../../src")] + sys.path
|
||||
sys.path = [path.join(this_path, "../../src/test/unit")] + sys.path
|
||||
sys.path = [path.join(this_path, "unit")] + sys.path
|
||||
return
|
||||
|
||||
def build_suite():
|
||||
"""Build suite test from files in unit directory. Filenames with test
|
||||
suites should always end with "_test.py"."""
|
||||
suites should always end with "_test.py".
|
||||
"""
|
||||
modules = []
|
||||
for fname in glob.glob1('unit', '*_test.py'):
|
||||
class_name = fname[:-8]
|
||||
@@ -39,7 +39,7 @@ def build_suite():
|
||||
return unittest.TestSuite(map(load, modules))
|
||||
|
||||
if __name__ == "__main__":
|
||||
chdir(path.abspath(path.curdir))
|
||||
chdir(path.abspath(path.dirname(__file__)))
|
||||
setup_path()
|
||||
unittest.main(defaultTest="build_suite")
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"""
|
||||
import unittest
|
||||
import os
|
||||
from lib.video import Video
|
||||
from pygtktalog.video import Video
|
||||
|
||||
class TestVideo(unittest.TestCase):
|
||||
"""Class for retrive midentify script output and put it in dict.
|
||||
@@ -102,4 +102,6 @@ class TestVideo(unittest.TestCase):
|
||||
os.unlink(filename)
|
||||
|
||||
if __name__ == "__main__":
|
||||
os.chdir(os.path.join(os.path.abspath(os.path.dirname(__file__)), "../"))
|
||||
print os.path.abspath(os.path.curdir)
|
||||
unittest.main()
|
||||