diff options
Diffstat (limited to 'test/uitests.sikuli/test_conversions.py')
-rw-r--r-- | test/uitests.sikuli/test_conversions.py | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/test/uitests.sikuli/test_conversions.py b/test/uitests.sikuli/test_conversions.py index 449c6d5..d305460 100644 --- a/test/uitests.sikuli/test_conversions.py +++ b/test/uitests.sikuli/test_conversions.py @@ -5,6 +5,7 @@ import os import tempfile import shutil import unittest +import lvc from lvcgui import MVCGui import datafiles import devices @@ -20,8 +21,8 @@ class Test_Conversions(unittest.TestCase): def setUp(self): """ - Each tests assumes that I there are files in the - list ready to be converted to some format. + Each tests assumes that I there are files in the list ready + to be converted to some format. """ self.lvc = MVCGui() @@ -54,7 +55,6 @@ class Test_Conversions(unittest.TestCase): When I convert a file Then the output file is in the specified directory """ - custom_output_dir = os.path.join(os.getenv("HOME"), "Desktop") item = "mp4-0.mp4" lvc.lvcGui() @@ -86,7 +86,7 @@ class Test_Conversions(unittest.TestCase): When I convert a file Then it is named with the file name (or even better item title) - as the base and the output container is the extension + As the base and the output container is the extension """ self.fail('I do not know the planned naming convention yet') @@ -95,38 +95,39 @@ class Test_Conversions(unittest.TestCase): When I convert a file Then it is named with the file name (or even better item title) - as the base and the output container is the extension + As the base and the output container is the extension """ self.fail('I do not know the planned naminig convention yet') def test_output_video_no_upsize(self): datadir, testfile = data.test_data() - item = testfile[0] # mp4-0.mp4 is smaller than the Apple Universal Setting + item = testfile[0] lvc.lvcGui() lvc.choose_device_conversion("Apple Universal") lvc.choose_dont_upsize('on') lvc.start_conversion() - assert lvc.verify_size(os.path.join(datadir, item), width, height) + assert lvc.verify_size(os.path.join( + datadir, item), width, height) """Scenario: Output file video size. When I convert a file to "format" And Don't Upsize is selected - Then the output file dimensions are not changed if the - input file is smaller than the device + Then the output file dimensions are not changed if the input file + is smaller than the device """ - # This test is best covered more completely in unittests to verify - # that we resize according to device sizes - item = "mp4-0.mp4" + # This test is best covered more completely in unittests + # to verify that we resize according to device sizes # mp4-0.mp4 is smaller than the Apple Universal Setting + item = "mp4-0.mp4" lvc.lvcGui() lvc.choose_device_conversion("Apple Universal") lvc.choose_dont_upsize('on') lvc.start_conversion() - assert lvc.verify_size(os.path.join(self.output_dir, item), - width, height) + assert lvc.verify_size(os.path.join( + self.output_dir, item), width, height) def test_output_video_upsize(self): """Scenario: Output file video size. @@ -135,17 +136,18 @@ class Test_Conversions(unittest.TestCase): And Don't Upsize is NOT selected The the output file dimensions are changed to match the device spec. """ - # This test is best covered more completely in unittests to verify - # that we resize according to device sizes - item = "mp4-0.mp4" + # This test is best covered more completely in unittests + # to verify that we resize according to device sizes + # mp4-0.mp4 is smaller than the Apple Universal Setting + item = "mp4-0.mp4" lvc.lvcGui() lvc.choose_device_conversion("Apple Universal") lvc.choose_dont_upsize('off') lvc.start_conversion() - assert lvc.verify_size(os.path.join(self.output_dir, item), - width, height) + assert lvc.verify_size(os.path.join( + self.output_dir, item), width, height) def test_completed_conversions_display(self): """Scenario: File displays as completed. |