Exemple #1
0
def render_index(request):
    """Controller for WatchDog index"""
    navpath = [('Home', '/'), ('WatchDog', )]

    context = {
        'navpath': navpath,
        'title': create_title(navpath),
        'tests': get_statuses()
    }

    return render(request, 'watchdog/base.html', context)
Exemple #2
0
def render_index(request):
    """Controller for WatchDog index"""
    navpath = [("Home", "/"), ("WatchDog", )]

    context = {
        "navpath": navpath,
        "title": create_title(navpath),
        "tests": get_statuses(),
    }

    return render(request, "watchdog/base.html", context)
Exemple #3
0
def render_index(request):
    """Controller for WatchDog index"""
    navpath = [('Home', '/'), ('WatchDog', )]

    context = {
        'navpath': navpath,
        'title': create_title(navpath),
        'tests': get_statuses()
    }

    return render(request, 'watchdog/base.html', context)
Exemple #4
0
 def get_context_data(self, **kwargs):
     context = super(WatchDogWidget, self).get_context_data(**kwargs)
     context['tests'] = [t for t in get_statuses() if t.status != STATUS_OK]
     return context
Exemple #5
0
def test_get_status_cache_does_not_raise():
    """Regression test for issue where pickle cache is poisoned from
    cross-environment testing - get_statuses() cache handling was bad
    """
    assert get_statuses()