예제 #1
0
 def test_api_url_https(self):
     self.assertEqual(
         embyupdate.api_url('https://localhost',
                            self.config['emby']['port'].get(),
                            '/Library/Refresh'),
         'https://localhost:8096/Library/Refresh?format=json'
     )
예제 #2
0
 def test_api_url(self):
     self.assertEqual(
         embyupdate.api_url(
             self.config["emby"]["host"].get(), self.config["emby"]["port"].get(), "/Library/Refresh"
         ),
         "http://localhost:8096/Library/Refresh?format=json",
     )
예제 #3
0
 def test_api_url(self):
     self.assertEqual(
         embyupdate.api_url(self.config['emby']['host'].get(),
                            self.config['emby']['port'].get(),
                            '/Library/Refresh'),
         'http://localhost:8096/Library/Refresh?format=json'
     )