Example #1
0
def test_get_plays_by_stream_resolution():
    client = raw_client()
    plays_by_stream_resolution = client.get_plays_by_stream_resolution()
    assert plays_by_stream_resolution is not None
    assert type(plays_by_stream_resolution) == dict
Example #2
0
def test_get_export_fields():
    client = raw_client()
    export_fields = client.get_export_fields(media_type="movie")
    assert export_fields is not None
    assert type(export_fields) == dict
Example #3
0
def test_get_geoip_lookup():
    client = raw_client()
    geoip_lookup = client.get_geoip_lookup("100.100.1.10")
    assert geoip_lookup is not None
    assert type(geoip_lookup) == dict
Example #4
0
def test_arnold():
    client = raw_client()
    arnold_quote = client.arnold
    assert arnold_quote is not None
    assert type(arnold_quote) == str
Example #5
0
def test_activity_summary_message():
    client = raw_client()
    activity = client.activity_summary_message
    assert activity is not None
    assert type(activity) == str
Example #6
0
def test_get_users_table():
    client = raw_client()
    users_table = client.get_users_table()
    assert users_table is not None
    assert type(users_table) == dict
Example #7
0
def test_status():
    client = raw_client()
    status = client.status()
    assert status is not None
    assert type(status) == dict
Example #8
0
def test_docs():
    client = raw_client()
    docs = client.docs
    assert docs is not None
    assert type(docs) == dict
Example #9
0
def test_get_recently_added():
    client = raw_client()
    recently_added = client.get_recently_added(count=10, media_type='movie')
    assert recently_added is not None
    assert type(recently_added) == dict
Example #10
0
def test_get_plex_log():
    client = raw_client()
    plex_log = client.get_plex_log()
    assert plex_log is not None
    assert type(plex_log) == dict
Example #11
0
def test_pms_update():
    client = raw_client()
    pms_update = client.pms_update
    assert pms_update is not None
    assert type(pms_update) == dict
Example #12
0
def test_get_plays_per_month():
    client = raw_client()
    plays_per_month = client.get_plays_per_month()
    assert plays_per_month is not None
    assert type(plays_per_month) == dict
Example #13
0
def test_get_plays_by_top_10_users():
    client = raw_client()
    plays_by_top_10_users = client.get_plays_by_top_10_users()
    assert plays_by_top_10_users is not None
    assert type(plays_by_top_10_users) == dict
Example #14
0
def test_get_plays_by_stream_type():
    client = raw_client()
    plays_by_stream_type = client.get_plays_by_stream_type()
    assert plays_by_stream_type is not None
    assert type(plays_by_stream_type) == dict
Example #15
0
def test_docs_md():
    client = raw_client()
    docs = client.docs_md
    assert docs is not None
    assert type(docs) == str
Example #16
0
def test_server_friendly_name():
    client = raw_client()
    server_friendly_name = client.server_friendly_name
    assert server_friendly_name is not None
    assert type(server_friendly_name) == str
Example #17
0
def test_users():
    client = raw_client()
    users = client.users
    assert users is not None
    assert type(users) == list
Example #18
0
def test_server_identity():
    client = raw_client()
    server_identity = client.server_identity
    assert server_identity is not None
    assert type(server_identity) == dict
Example #19
0
def test_get_whois_lookup():
    client = raw_client()
    whois_lookup = client.get_whois_lookup('google.com')
    assert whois_lookup is not None
    assert type(whois_lookup) == dict
Example #20
0
def test_servers_info():
    client = raw_client()
    servers_info = client.servers_info
    assert servers_info is not None
    assert type(servers_info) == list
Example #21
0
def test_update_check():
    client = raw_client()
    update_check = client.update_check
    assert update_check is not None
    assert type(update_check) == dict
Example #22
0
def test_get_settings():
    client = raw_client()
    settings = client.get_settings()
    assert settings is not None
    assert type(settings) == dict
Example #23
0
def test_activity_summary():
    client = raw_client()
    activity = client.activity_summary
    assert activity is not None
    assert type(activity) == dict
Example #24
0
def test_get_api_key():
    no_key_client = raw_client(no_key=True)
    key = no_key_client.get_api_key()
    assert key is not None
    assert key != ''
Example #25
0
def test_date_formats():
    client = raw_client()
    date_formats = client.date_formats
    assert date_formats is not None
    assert type(date_formats) == dict
Example #26
0
def test_get_stream_type_by_top_10_users():
    client = raw_client()
    stream_type_by_top_10_users = client.get_stream_type_by_top_10_users()
    assert stream_type_by_top_10_users is not None
    assert type(stream_type_by_top_10_users) == dict
Example #27
0
def test_get_exports_table():
    client = raw_client()
    exports = client.get_exports_table()
    assert exports is not None
    assert type(exports) == dict
Example #28
0
def test_user_names():
    client = raw_client()
    user_names = client.user_names
    assert user_names is not None
    assert type(user_names) == list
Example #29
0
def test_get_history():
    client = raw_client()
    history = client.get_history()
    assert history is not None
    assert type(history) == dict
Example #30
0
def test_get_plays_by_hour_of_day():
    client = raw_client()
    plays_by_hour_of_day = client.get_plays_by_hour_of_day()
    assert plays_by_hour_of_day is not None
    assert type(plays_by_hour_of_day) == dict