Added a small test for rtv_convert to confirm that the seconds are no longer included...
[recordtv.git] / src / test_recordtv
blob7cafc45a9e6daaa1ae76eba568ddc9d0b1ecfea7
1 #!/usr/bin/python
3 import rtv_download
4 import rtv_schedule
5 import rtv_tvguide
6 import rtv_delete
7 import rtv_convert
8 import rtv_propertiesfile
9 import test.schedule
11 from rtv_config import GTVGConfig
13 class FakeOptions:
14 pass
16 def test_fast():
17 options = FakeOptions()
18 options.days = 1
19 config = GTVGConfig( options, [] )
21 rtv_propertiesfile.test()
22 rtv_schedule.test( config )
23 rtv_convert.test( config )
25 def test_slow():
26 test.schedule.test_slow()
28 def main():
30 test_fast()
31 test_slow()
33 print "All tests passed."
35 if __name__ == "__main__":
36 main()