From 44ca94749aabace75fb2d33e49eaf1a62760c242 Mon Sep 17 00:00:00 2001 From: jaseg Date: Thu, 16 Jul 2020 13:23:26 +0200 Subject: tests: rename test.srt to sub_test.srt to prevent auto-load --- mpv-test.py | 4 ++-- sub_test.srt | 9 +++++++++ test.srt | 9 --------- 3 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 sub_test.srt delete mode 100644 test.srt diff --git a/mpv-test.py b/mpv-test.py index aca6952..8bcf0d3 100755 --- a/mpv-test.py +++ b/mpv-test.py @@ -588,7 +588,7 @@ class CommandTests(MpvTestCase): handler = mock.Mock() self.m.property_observer('sub-text')(handler) - self.m.loadfile(TESTVID, sub_file='test.srt') + self.m.loadfile(TESTVID, sub_file='sub_test.srt') self.m.wait_for_playback() handler.assert_any_call('sub-text', 'This is\na subtitle test.') @@ -600,7 +600,7 @@ class CommandTests(MpvTestCase): self.m.loadfile(TESTVID) self.m.wait_for_property('core-idle', lambda x: not x) - self.m.sub_add('test.srt') + self.m.sub_add('sub_test.srt') self.m.wait_for_playback() handler.assert_any_call('sub-text', 'This is\na subtitle test.') diff --git a/sub_test.srt b/sub_test.srt new file mode 100644 index 0000000..e6f36e0 --- /dev/null +++ b/sub_test.srt @@ -0,0 +1,9 @@ +1 +00:00:00,500 --> 00:00:01,000 +This is +a subtitle test. + +2 +00:00:01,000 --> 00:00:02,000 +This is the second subtitle line. + diff --git a/test.srt b/test.srt deleted file mode 100644 index e6f36e0..0000000 --- a/test.srt +++ /dev/null @@ -1,9 +0,0 @@ -1 -00:00:00,500 --> 00:00:01,000 -This is -a subtitle test. - -2 -00:00:01,000 --> 00:00:02,000 -This is the second subtitle line. - -- cgit