Ejemplo n.º 1
0
 def __init__(self, host, username, password, client_id='12345', diagnostic=False):
     self.host = EmbyCroft.normalize_host(host)
     self.log = logging.getLogger(__name__)
     self.version = "UNKNOWN"
     self.set_version()
     if not diagnostic:
         self.client = EmbyClient(
             self.host, username, password,
             device="Mycroft", client="Emby Skill", client_id=client_id, version=self.version)
     else:
         self.client = PublicEmbyClient(self.host, client_id=client_id)
 def test_server_info_public(self):
     client = PublicEmbyClient(HOST)
     response = client.get_server_info_public()
     assert response.status_code == 200
     server_info = response.json()
     TestEmbyClient._assert_server_info(server_info)