diff options
author | jaseg <code@jaseg.net> | 2020-07-21 08:37:00 +0200 |
---|---|---|
committer | jaseg <code@jaseg.net> | 2020-07-21 08:37:00 +0200 |
commit | 170f15d39048bbe48ad46cf757a8bc6bdb3e50ce (patch) | |
tree | f5ae116bdec6500961239ddeea802806b5fa92f3 | |
parent | 2b66d0d97b3f07338adfebbbb64b0fb2759bb82e (diff) | |
download | python-mpv-170f15d39048bbe48ad46cf757a8bc6bdb3e50ce.tar.gz python-mpv-170f15d39048bbe48ad46cf757a8bc6bdb3e50ce.tar.bz2 python-mpv-170f15d39048bbe48ad46cf757a8bc6bdb3e50ce.zip |
Make tests run when called through setup.py from root dir
-rwxr-xr-x | tests/test_mpv.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_mpv.py b/tests/test_mpv.py index cb6297c..b100995 100755 --- a/tests/test_mpv.py +++ b/tests/test_mpv.py @@ -674,7 +674,7 @@ class CommandTests(MpvTestCase): handler = mock.Mock() self.m.property_observer('sub-text')(handler) - self.m.loadfile(TESTVID, sub_file='sub_test.srt') + self.m.loadfile(TESTVID, sub_file='tests/sub_test.srt') self.m.wait_for_playback() handler.assert_any_call('sub-text', 'This is\na subtitle test.') @@ -686,7 +686,7 @@ class CommandTests(MpvTestCase): self.m.loadfile(TESTVID) self.m.wait_until_playing() - self.m.sub_add('sub_test.srt') + self.m.sub_add('tests/sub_test.srt') self.m.wait_for_playback() handler.assert_any_call('sub-text', 'This is\na subtitle test.') |