Example #1
0
    def test_set_live_reload_status(self, validate_live_reload_data, set_live_reload_status, live_reload_status_changed):
        data = {'enabled': True}

        services.set_live_reload_status(data)

        validate_live_reload_data.assert_called_once_with(data)
        set_live_reload_status.assert_called_once_with(data)
        live_reload_status_changed.assert_called_once_with(data)
Example #2
0
    def test_set_live_reload_status(self, validate_live_reload_data,
                                    set_live_reload_status,
                                    live_reload_status_changed):
        data = {'enabled': True}

        services.set_live_reload_status(data)

        validate_live_reload_data.assert_called_once_with(data)
        set_live_reload_status.assert_called_once_with(data)
        live_reload_status_changed.assert_called_once_with(data)
Example #3
0
def set_live_reload():
    data = document.parse(request)
    services.set_live_reload_status(data)
    return make_response('', 204)