Пример #1
0
 def test_update_plex_server(self):
     server = client().get_plex_server(server_name=fake_plex_server['name'])
     assert server.arGuide is False
     success = client().update_plex_server(
         server_name=fake_plex_server['name'], arGuide=True)
     # request/update is successful, but throwing a timeout error, so success is False
     server = client().get_plex_server(server_name=fake_plex_server['name'])
     assert server.arGuide is True
Пример #2
0
 def test_delete_plex_server(self):
     server = client().get_plex_server(server_name=fake_plex_server['name'])
     assert server is not None
     success = client().delete_plex_server(
         server_name=fake_plex_server['name'])
     # request/update is successful, but throwing a timeout error, so success is False
     sleep(1)
     server = client().get_plex_server(server_name=fake_plex_server['name'])
     assert server is None
Пример #3
0
 def test_get_plex_server(self):
     server = client().get_plex_server(server_name=fake_plex_server['name'])
     assert type(server) in [dizqueTV.PlexServer, None]
Пример #4
0
 def test_xmltv_settings(self):
     settings = client().xmltv_settings
     assert settings is not None
     assert settings.file != ''
Пример #5
0
 def test_plex_servers(self):
     servers = client().plex_servers
     assert type(servers) == list
Пример #6
0
 def test_plex_server_foreign_status(self):
     status = client().plex_server_foreign_status(
         server_name=fake_plex_server['name'])
     assert type(status) == bool
Пример #7
0
 def test_channel_list(self):
     channels = client().channels
     assert type(channels) == list
Пример #8
0
 def test_add_plex_server(self):
     # add a fake Plex server
     server = client().get_plex_server(server_name=fake_plex_server['name'])
     assert server is None
     server = client().add_plex_server(**fake_plex_server)
     assert type(server) == dizqueTV.PlexServer
Пример #9
0
 def test_hdhr_settings(self):
     settings = client().hdhr_settings
     assert settings is not None
     assert settings.tunerCount != ''
Пример #10
0
 def test_channel_count(self):
     count = client().channel_count
     assert type(count) == int
Пример #11
0
 def test_plex_settings(self):
     settings = client().plex_settings
     assert settings is not None
     assert settings.transcodeBitrate != ''
Пример #12
0
def use_real_plex():
    if not client().get_plex_server(plex_server().friendlyName):
        yield client().add_plex_server_from_plexapi(plex_server())
    else:
        yield client().get_plex_server(plex_server().friendlyName)
Пример #13
0
 def test_ffmpeg_settings(self):
     settings = client().ffmpeg_settings
     assert settings is not None
     assert settings.configVersion != ''
Пример #14
0
 def test_nodejs_version(self):
     version = client().nodejs_version
     assert version != ''
Пример #15
0
 def test_ffmpeg_version(self):
     version = client().ffmpeg_version
     assert version != ''
Пример #16
0
 def test_dizquetv_version(self):
     version = client().dizquetv_version
     assert version != ''
Пример #17
0
 def test_dizquetv_server_details(self):
     details = client().dizquetv_server_details
     assert details.server_version != ''
     assert details.ffmpeg_version != ''
     assert details.nodejs_version != ''