• 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

80.0
/apps/polls/dashboard.py
1
from django.urls import reverse
1✔
2

3
from adhocracy4.dashboard import components
1✔
4
from adhocracy4.polls import dashboard as a4_poll_dashboard
1✔
5
from adhocracy4.polls import exports as a4_poll_exports
1✔
6

7
from . import views
1✔
8

9

10
class PollComponent(a4_poll_dashboard.PollComponent):
1✔
11
    def get_base_url(self, module):
1✔
12
        return reverse(
×
13
            "a4dashboard:poll-dashboard",
14
            kwargs={
15
                "organisation_slug": module.project.organisation.slug,
16
                "module_slug": module.slug,
17
            },
18
        )
19

20

21
class ExportPollComponent(a4_poll_dashboard.ExportPollComponent):
1✔
22
    def get_base_url(self, module):
1✔
23
        return reverse(
×
24
            "a4dashboard:poll-export-module",
25
            kwargs={
26
                "organisation_slug": module.project.organisation.slug,
27
                "module_slug": module.slug,
28
            },
29
        )
30

31
    def get_urls(self):
1✔
32
        return [
×
33
            (
34
                r"^modules/(?P<module_slug>[-\w_]+)/poll/export/$",
35
                views.PollDashboardExportView.as_view(),
36
                "poll-export-module",
37
            ),
38
            (
39
                r"^modules/(?P<module_slug>[-\w_]+)/poll/export/comments/$",
40
                a4_poll_exports.PollCommentExportView.as_view(),
41
                "poll-comment-export",
42
            ),
43
            (
44
                r"^modules/(?P<module_slug>[-\w_]+)/poll/export/poll/$",
45
                a4_poll_exports.PollExportView.as_view(),
46
                "poll-export",
47
            ),
48
        ]
49

50

51
components.replace_module(PollComponent())
1✔
52
components.replace_module(ExportPollComponent())
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