tests: rename test.srt to sub_test.srt to prevent auto-load

This commit is contained in:
jaseg 2020-07-16 13:23:26 +02:00
parent b68a03c9d0
commit 44ca94749a
2 changed files with 2 additions and 2 deletions

View file

@ -588,7 +588,7 @@ class CommandTests(MpvTestCase):
handler = mock.Mock() handler = mock.Mock()
self.m.property_observer('sub-text')(handler) 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() self.m.wait_for_playback()
handler.assert_any_call('sub-text', 'This is\na subtitle test.') handler.assert_any_call('sub-text', 'This is\na subtitle test.')
@ -600,7 +600,7 @@ class CommandTests(MpvTestCase):
self.m.loadfile(TESTVID) self.m.loadfile(TESTVID)
self.m.wait_for_property('core-idle', lambda x: not x) 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() self.m.wait_for_playback()
handler.assert_any_call('sub-text', 'This is\na subtitle test.') handler.assert_any_call('sub-text', 'This is\na subtitle test.')