12345678910111213141516171819202122232425262728293031323334353637383940 |
- #!/usr/bin/python
- import devices
- from sikuli.Sikuli import *
- import devices
- import config
- from lvcgui import MVCGui
- import datafiles
- data = datafiles.TestData()
- def test_other_conversions():
- """Scenario: test other output conversion options.
- """
- device_list = devices.devices('Other')
- for x in device_list:
- yield convert_to_format, x
- def convert_to_format(device_output):
- print(device_output)
- expected_failures = ['fake_video.mp4']
- lvc = MVCGui()
- lvc.lvc_focus()
- datadir, testfiles = data.test_data(many=True, new=True)
- lvc.browse_for_files(datadir, testfiles)
- output_dir = tempfile.mkdtemp()
- lvc.choose_save_location(output_dir)
- lvc.choose_device_conversion("device_output")
- lvc.start_conversions()
- for item in testfiles:
- if item in expected_failures:
- lvc.verify_failed(item, 120)
- else:
- lvc.verify_completed(item, 120)
- lvc.clear_finished_files(item)
- lvc.clear_and_start_over()
|