• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

gcivil-nyu-org / fall24-monday-team4 / 55

04 Nov 2024 07:39PM UTC coverage: 68.269% (-2.1%) from 70.383%
55

push

travis-pro

shashankdatta
working trips and management flow

14 of 37 new or added lines in 4 files covered. (37.84%)

213 of 312 relevant lines covered (68.27%)

0.68 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

60.0
/routepals/views.py
1
from django.views.generic import TemplateView
1✔
2
from locations.models import Trip
1✔
3
from django.utils import timezone
1✔
4

5

6
class HomeView(TemplateView):
1✔
7
    template_name = "home.html"
1✔
8

9
    def get_context_data(self, **kwargs):
1✔
NEW
10
        context = super().get_context_data(**kwargs)
×
NEW
11
        if self.request.user.is_authenticated:
×
NEW
12
            context["has_active_trip"] = Trip.objects.filter(
×
13
                user=self.request.user,
14
                status="SEARCHING",
15
            ).exists()
NEW
16
        return context
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc