Merge branch 'master' of ssh://repo.or.cz/srv/git/recordtv
[recordtv.git] / src / test_recordtv
blobdb9c158dcbcee754a691be0ec880b6fa57c707ac
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 rtv_favourite
10 import test.schedule
12 from rtv_config import GTVGConfig
14 class FakeOptions:
15 pass
17 def test_fast():
18 options = FakeOptions()
19 options.days = 1
20 config = GTVGConfig( options, [] )
22 rtv_propertiesfile.test()
23 rtv_schedule.test( config )
24 rtv_convert.test( config )
25 rtv_favourite.test( config )
27 def test_slow():
28 test.schedule.test_slow()
30 def main():
32 test_fast()
33 test_slow()
35 print "All tests passed."
37 if __name__ == "__main__":
38 main()