• 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

68.18
/apps/activities/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 models
1✔
8
from . import views
1✔
9

10

11
class ActivityComponent(DashboardComponent):
1✔
12
    identifier = "facetoface"
1✔
13
    weight = 20
1✔
14
    label = _("Face-to-Face Information")
1✔
15

16
    def is_effective(self, module):
1✔
17
        module_app = module.phases[0].content().app
×
18
        return module_app == "a4_candy_activities"
×
19

20
    def get_progress(self, module):
1✔
21
        if models.Activity.objects.filter(module=module).exists():
×
22
            return 1, 1
×
23
        return 0, 1
×
24

25
    def get_base_url(self, module):
1✔
26
        return reverse(
×
27
            "a4dashboard:activities-dashboard",
28
            kwargs={
29
                "organisation_slug": module.project.organisation.slug,
30
                "module_slug": module.slug,
31
            },
32
        )
33

34
    def get_urls(self):
1✔
35
        return [
×
36
            (
37
                r"^modules/(?P<module_slug>[-\w_]+)/activities/$",
38
                views.ActivityDashboardView.as_view(component=self),
39
                "activities-dashboard",
40
            )
41
        ]
42

43

44
components.register_module(ActivityComponent())
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