예제 #1
0
    def test_get_live_reload_status(self, is_live_reload_enabled):
        is_live_reload_enabled.return_value = False
        expected_result = {'enabled': False}

        result = services.get_live_reload_status()

        assert_that(result, equal_to(expected_result))
        is_live_reload_enabled.assert_called_once_with()
예제 #2
0
    def test_get_live_reload_status(self, is_live_reload_enabled):
        is_live_reload_enabled.return_value = False
        expected_result = {'enabled': False}

        result = services.get_live_reload_status()

        assert_that(result, equal_to(expected_result))
        is_live_reload_enabled.assert_called_once_with()
예제 #3
0
def get_live_reload():
    result = services.get_live_reload_status()
    return make_response(serializer.encode(result), 200)