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

liqd / adhocracy-plus / 18908688697

29 Oct 2025 12:59PM UTC coverage: 44.622% (-44.5%) from 89.135%
18908688697

Pull #2986

github

web-flow
Merge 1dfde8ee7 into 445e1d498
Pull Request #2986: Draft: Speed up Github Ci Tests

3012 of 6750 relevant lines covered (44.62%)

0.45 hits per line

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

77.78
/apps/offlineevents/dashboard.py
1
from django.urls import reverse
1✔
2
from django.utils.translation import gettext_lazy as _
1✔
3

4
from adhocracy4.dashboard import DashboardComponent
1✔
5
from adhocracy4.dashboard import components
1✔
6

7
from . import views
1✔
8

9

10
class OfflineEventsComponent(DashboardComponent):
1✔
11
    identifier = "offlineevents"
1✔
12
    weight = 20
1✔
13
    label = _("Offline Events")
1✔
14

15
    def is_effective(self, project):
1✔
16
        return True
×
17

18
    def get_progress(self, project):
1✔
19
        return 0, 0
×
20

21
    def get_base_url(self, project):
1✔
22
        return reverse(
×
23
            "a4dashboard:offlineevent-list",
24
            kwargs={
25
                "organisation_slug": project.organisation.slug,
26
                "project_slug": project.slug,
27
            },
28
        )
29

30
    def get_urls(self):
1✔
31
        return [
×
32
            (
33
                r"^offlineevents/projects/(?P<project_slug>[-\w_]+)/$",
34
                views.OfflineEventListView.as_view(component=self),
35
                "offlineevent-list",
36
            ),
37
            (
38
                r"^offlineevents/create/project/(?P<project_slug>[-\w_]+)/$",
39
                views.OfflineEventCreateView.as_view(component=self),
40
                "offlineevent-create",
41
            ),
42
            (
43
                r"^offlineevents/(?P<slug>[-\w_]+)/update/$",
44
                views.OfflineEventUpdateView.as_view(component=self),
45
                "offlineevent-update",
46
            ),
47
            (
48
                r"^offlineevents/(?P<slug>[-\w_]+)/delete/$",
49
                views.OfflineEventDeleteView.as_view(component=self),
50
                "offlineevent-delete",
51
            ),
52
        ]
53

54

55
components.register_project(OfflineEventsComponent())
1✔
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