def test_settings(logged_rocket):
    settings = logged_rocket.settings().json()
    assert settings.get("success")
    settings_get = logged_rocket.settings_get(_id="API_Allow_Infinite_Count").json()
    assert settings_get.get("success")
    assert settings_get.get("value")
    settings_update = logged_rocket.settings_update(
        _id="API_Allow_Infinite_Count", value=True
    ).json()
    assert settings_update.get("success")


def test_settings_public(rocket):
    settings_public = rocket.settings_public().json()
    assert settings_public.get("success")
    assert "settings" in settings_public


def test_service_configurations(rocket):
    service_configurations = rocket.service_configurations().json()
    assert service_configurations.get("success")
    assert "configurations" in service_configurations

def test_settings(logged_rocket):
    settings = logged_rocket.settings().json()
    assert settings.get("success")
    settings_get = logged_rocket.settings_get(_id="API_Allow_Infinite_Count").json()
    assert settings_get.get("success")
    assert settings_get.get("value")
    settings_update = logged_rocket.settings_update(
        _id="API_Allow_Infinite_Count", value=True
    ).json()
    assert settings_update.get("success")


def test_settings_public(rocket):
    settings_public = rocket.settings_public().json()
    assert settings_public.get("success")
    assert "settings" in settings_public


def test_service_configurations(rocket):
    service_configurations = rocket.service_configurations().json()
    assert service_configurations.get("success")
    assert "configurations" in service_configurations
