From 93e0a1fafaf424e02c9a840175f5a733153923af Mon Sep 17 00:00:00 2001 From: mediaminister <45148099+mediaminister@users.noreply.github.com> Date: Tue, 17 Sep 2024 19:25:35 +0200 Subject: [PATCH] Fix streamservice test (#1187) --- tests/test_streamservice.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_streamservice.py b/tests/test_streamservice.py index abeed270..94c5b9d0 100644 --- a/tests/test_streamservice.py +++ b/tests/test_streamservice.py @@ -93,7 +93,9 @@ def test_get_ondemand_stream_from_from_videoid_geoblocked(self): 'publication_id': 'pbs-pub-8a1068a5-cffc-4b25-96cc-2b15b3c513dc', } stream = self._streamservice.get_stream(video) - self.assertTrue(stream is not None) + # NOTE: Testing geoblocked streams only works within Europe + if os.environ.get('GITHUB_ACTIONS') != 'true': + self.assertTrue(stream is not None) @unittest.skipUnless(addon.settings.get('username'), 'Skipping as VRT username is missing.') @unittest.skipUnless(addon.settings.get('password'), 'Skipping as VRT password is missing.')