Пример #1
0
    def test_subtitle_list_relative_path(self, execute_task):
        task = execute_task('subtitle_path_relative')

        with Session() as session:
            s = session.query(SubtitleListFile).first()
            assert s, 'The file should have been added to the list'
            assert s.location == normalize_path('subtitle_list_test_dir/The.Walking.Dead.S06E08-FlexGet.mp4'), \
                'location should be what the output field was set to'
Пример #2
0
    def test_subtitle_list_relative_path(self, execute_task):
        execute_task('subtitle_path_relative')

        with Session() as session:
            s = session.query(SubtitleListFile).first()
            assert s, 'The file should have been added to the list'
            assert s.location == normalize_path('subtitle_list_test_dir/The.Walking.Dead.S06E08-FlexGet.mp4'), \
                'location should be what the output field was set to'
Пример #3
0
    def test_subtitle_list_path(self, execute_task):
        execute_task("subtitle_path")

        with Session() as session:
            s = session.query(SubtitleListFile).first()
            assert s, "The file should have been added to the list"
            assert s.location == normalize_path(
                "subtitle_list_test_dir/The.Walking.Dead.S06E08-FlexGet.mp4"
            ), "location should be what the output field was set to"