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

liqd / roots / 26235555947

21 May 2026 03:24PM UTC coverage: 40.79% (-39.5%) from 80.274%
26235555947

Pull #112

github

web-flow
Merge 0c04922a1 into fb15f37ba
Pull Request #112: [ST-2214] Add more Information to Sentry Error + Solve absolute Url Bug

9 of 27 new or added lines in 5 files covered. (33.33%)

3614 existing lines in 161 files now uncovered.

3736 of 9159 relevant lines covered (40.79%)

0.41 hits per line

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

68.42
/apps/organisations/function_overwrites.py
1
from django.urls import reverse
1✔
2

3
from adhocracy4.dashboard.components.forms import ModuleFormComponent
1✔
4
from adhocracy4.dashboard.components.forms import ProjectFormComponent
1✔
5
from adhocracy4.modules.models import Module
1✔
6
from adhocracy4.projects.models import Project
1✔
7

8

9
def module_get_absolute_url(self):
1✔
UNCOV
10
    return reverse(
×
11
        "module-detail",
12
        kwargs={
13
            "organisation_slug": self.project.organisation.slug,
14
            "module_slug": self.slug,
15
        },
16
    )
17

18

19
def project_get_absolute_url(self):
1✔
UNCOV
20
    return reverse(
×
21
        "project-detail",
22
        kwargs={"organisation_slug": self.organisation.slug, "slug": self.slug},
23
    )
24

25

26
def project_get_base_url(self, project):
1✔
UNCOV
27
    name = "a4dashboard:dashboard-{identifier}-edit".format(identifier=self.identifier)
×
UNCOV
28
    return reverse(
×
29
        name,
30
        kwargs={
31
            "organisation_slug": project.organisation.slug,
32
            "project_slug": project.slug,
33
        },
34
    )
35

36

37
def module_get_base_url(self, module):
1✔
UNCOV
38
    name = "a4dashboard:dashboard-{identifier}-edit".format(identifier=self.identifier)
×
UNCOV
39
    return reverse(
×
40
        name,
41
        kwargs={
42
            "organisation_slug": module.project.organisation.slug,
43
            "module_slug": module.slug,
44
        },
45
    )
46

47

48
Module.add_to_class("get_absolute_url", module_get_absolute_url)
1✔
49
Project.add_to_class("get_absolute_url", project_get_absolute_url)
1✔
50
ProjectFormComponent.get_base_url = project_get_base_url
1✔
51
ModuleFormComponent.get_base_url = module_get_base_url
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

© 2026 Coveralls, Inc