diff options
author | Jesús Eduardo <heckyel@hyperbola.info> | 2018-01-18 16:47:29 -0500 |
---|---|---|
committer | Jesús Eduardo <heckyel@hyperbola.info> | 2018-01-18 16:47:29 -0500 |
commit | 2e9103bb8e78d3ff2a4ed6fa41b80e8b3ae5dfd3 (patch) | |
tree | a1b69f1e03e8a1a2511e9aae9792f88825920087 | |
parent | 78fc2e84e42cd4b771c2cfc6f6619cc13f8f9cd5 (diff) | |
download | librevideoconverter-2e9103bb8e78d3ff2a4ed6fa41b80e8b3ae5dfd3.tar.lz librevideoconverter-2e9103bb8e78d3ff2a4ed6fa41b80e8b3ae5dfd3.tar.xz librevideoconverter-2e9103bb8e78d3ff2a4ed6fa41b80e8b3ae5dfd3.zip |
pep8 en test/uitests.sikuli/test_choose_files.py
-rw-r--r-- | test/uitests.sikuli/test_choose_files.py | 37 |
1 files changed, 16 insertions, 21 deletions
diff --git a/test/uitests.sikuli/test_choose_files.py b/test/uitests.sikuli/test_choose_files.py index 048133f..8140a60 100644 --- a/test/uitests.sikuli/test_choose_files.py +++ b/test/uitests.sikuli/test_choose_files.py @@ -17,7 +17,7 @@ class Test_Choose_Files(unittest.TestCase): def setUp(self): """ - setup app for tests + setup app for tests """ self.lvc = MVCGui() @@ -26,8 +26,6 @@ class Test_Choose_Files(unittest.TestCase): self.output_dir = tempfile.mkdtemp() self.lvc.choose_save_location(self.output_dir) - - def test_browse_for_a_file(self): """Scenario: Browse for a single file. @@ -38,22 +36,19 @@ class Test_Choose_Files(unittest.TestCase): datadir, testfiles = data.test_data(many=False) lvc.browse_for_files(datadir, testfiles) item = testfiles[0] - assert lvc.verify_file_in_list(item) - - - + assert lvc.verify_file_in_list(item) def test_choose_several_files(self): """Scenario: Browse for several files. When I browse for several files - Then the files are added to the list + Then the files are added to the list """ lvc = MVCGui() datadir, testfiles = data.test_data(many=True) lvc.browse_for_files(datadir, testfiles) for t in testfiles: - assert lvc.verify_file_in_list(t) + assert lvc.verify_file_in_list(t) def skip_test_choose_a_directory_files(self): """Scenario: Choose a directory of files. @@ -65,26 +60,26 @@ class Test_Choose_Files(unittest.TestCase): def test_drag_a_file_to_drop_zone(self): """Scenario: Drag a single file to drop zone. - When I drag a file to the drop zone - Then the file is added to the list + When I drag a file to the drop zone + Then the file is added to the list """ lvc = MVCGui() datadir, testfiles = data.test_data(many=False) lvc.drag_and_drop_files(datadir, testfiles) item = testfiles[0] - assert lvc.verify_file_in_list(item) + assert lvc.verify_file_in_list(item) def test_drag_and_drop_multiple_files(self): """Scenario: Drag multiple files. - When I drag several files to the drop zone + When I drag several files to the drop zone Then the files are added to the list """ lvc = MVCGui() datadir, testfiles = data.test_data(many=True) lvc.drag_and_drop_files(datadir, testfiles) for t in testfiles: - assert lvc.verify_file_in_list(t) + assert lvc.verify_file_in_list(t) def test_drag_more_files_to_drop_zone(self): """Scenario: Drag additional files to the existing list. @@ -99,7 +94,7 @@ class Test_Choose_Files(unittest.TestCase): moredatadir, moretestfiles = data.test_data(many=False, new=True) item = testfiles[0] lvc.drag_and_drop_files(moredatadir, item) - assert lvc.verify_file_in_list(item) + assert lvc.verify_file_in_list(item) def test_browse_for_more_files_and_add_them(self): """Scenario: Choose additional files and add to the existing list. @@ -115,15 +110,15 @@ class Test_Choose_Files(unittest.TestCase): moredatadir, moretestfiles = data.test_data(many=False, new=True) item = testfiles[0] lvc.browse_for_files(moredatadir, item) - assert lvc.verify_file_in_list(item) + assert lvc.verify_file_in_list(item) - def test_drag_more_file_while_converting(self): - """Scenario: Drag additional files to the existing list with conversions in progress. + """Scenario: Drag additional files to the existing + list with conversions in progress. Given I have files in the list And I start conversion - When I drag a new file to the drop zone + When I drag a new file to the drop zone Then the new file is added to the list and is converted """ @@ -140,7 +135,8 @@ class Test_Choose_Files(unittest.TestCase): assert lvc.verify_completed(item, 60) def test_browse_more_files_while_converting(self): - """Scenario: Choose additional files and add to list with conversions in progress. + """Scenario: Choose additional files and add to + list with conversions in progress. Given I have files in the list And I start conversion @@ -163,4 +159,3 @@ class Test_Choose_Files(unittest.TestCase): def tearDown(self): shutil.rmtree(self.output_dir) self.lvc_quit() - |