[vlc-commits] python: adapt test to 4.x API
Olivier Aubert
git at videolan.org
Sun Jan 10 12:08:50 UTC 2021
vlc/python | branch: master | Olivier Aubert <contact at olivieraubert.net> | Sun Jan 10 13:07:08 2021 +0100| [53745ef91a71a7e74fe51b9dfac4e1a5c7d17423] | committer: Olivier Aubert
python: adapt test to 4.x API
> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=53745ef91a71a7e74fe51b9dfac4e1a5c7d17423
---
tests/test.py | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/tests/test.py b/tests/test.py
index 69459bc..27ca8be 100755
--- a/tests/test.py
+++ b/tests/test.py
@@ -153,8 +153,8 @@ class TestVLCAPI(unittest.TestCase):
def test_libvlc_video_new_viewpoint(self):
vp = vlc.libvlc_video_new_viewpoint()
- vp.contents.yaw = 2
- self.assertEqual(vp.contents.yaw, 2)
+ vp.contents.f_yaw = 2
+ self.assertEqual(vp.contents.f_yaw, 2)
def no_test_callback(self):
@@ -182,9 +182,7 @@ class TestVLCAPI(unittest.TestCase):
m.parse()
# Audiotrack is the second one
audiotrack = list(m.tracks_get())[1]
- self.assertEqual(audiotrack.language, b"eng")
- self.assertEqual(audiotrack.description, b"Stereo")
- self.assertEqual(audiotrack.bitrate, 83051)
+ self.assertEqual(audiotrack.i_original_fourcc, 0x6134706d)
self.assertEqual(m.get_duration(), 5568)
def test_meta_get(self):
More information about the vlc-commits
mailing list