https://stackoverflow.com/questions/29435156 - add additional linting steps to Github actions for checking the line endings and file permissions - fix line endings and file permissionspull/3445/head
parent
b31d1ac0ef
commit
374130a4de
4 changed files with 24 additions and 17 deletions
@ -1 +1,2 @@ |
||||
* text=auto eol=lf |
||||
src/streamlink/_version.py export-subst |
||||
|
@ -1,16 +1,16 @@ |
||||
import unittest |
||||
|
||||
from streamlink.plugins.webcast_india_gov import WebcastIndiaGov |
||||
|
||||
|
||||
class TestPluginWebcastIndiaGov(unittest.TestCase): |
||||
def test_can_handle_url(self): |
||||
# should match |
||||
self.assertTrue(WebcastIndiaGov.can_handle_url("http://webcast.gov.in/ddpunjabi/")) |
||||
self.assertTrue(WebcastIndiaGov.can_handle_url("http://webcast.gov.in/#Channel1")) |
||||
self.assertTrue(WebcastIndiaGov.can_handle_url("http://webcast.gov.in/#Channel3")) |
||||
|
||||
# shouldn't match |
||||
self.assertFalse(WebcastIndiaGov.can_handle_url("http://meity.gov.in/")) |
||||
self.assertFalse(WebcastIndiaGov.can_handle_url("http://www.nic.in/")) |
||||
self.assertFalse(WebcastIndiaGov.can_handle_url("http://digitalindiaawards.gov.in/")) |
||||
import unittest |
||||
|
||||
from streamlink.plugins.webcast_india_gov import WebcastIndiaGov |
||||
|
||||
|
||||
class TestPluginWebcastIndiaGov(unittest.TestCase): |
||||
def test_can_handle_url(self): |
||||
# should match |
||||
self.assertTrue(WebcastIndiaGov.can_handle_url("http://webcast.gov.in/ddpunjabi/")) |
||||
self.assertTrue(WebcastIndiaGov.can_handle_url("http://webcast.gov.in/#Channel1")) |
||||
self.assertTrue(WebcastIndiaGov.can_handle_url("http://webcast.gov.in/#Channel3")) |
||||
|
||||
# shouldn't match |
||||
self.assertFalse(WebcastIndiaGov.can_handle_url("http://meity.gov.in/")) |
||||
self.assertFalse(WebcastIndiaGov.can_handle_url("http://www.nic.in/")) |
||||
self.assertFalse(WebcastIndiaGov.can_handle_url("http://digitalindiaawards.gov.in/")) |
||||
|
Loading…
Reference in new issue