• 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

87.5
/apps/topicprio/forms.py
1
from django import forms
1✔
2
from django.utils.translation import gettext_lazy as _
1✔
3
from django_ckeditor_5.fields import CKEditor5Field
1✔
4

5
from adhocracy4.categories.forms import CategorizableFieldMixin
1✔
6
from adhocracy4.images.validators import ImageAltTextValidator
1✔
7
from adhocracy4.labels.mixins import LabelsAddableFieldMixin
1✔
8

9
from . import models
1✔
10

11

12
class TopicForm(
1✔
13
    CategorizableFieldMixin,
14
    LabelsAddableFieldMixin,
15
    forms.ModelForm,
16
):
17
    description = CKEditor5Field(
1✔
18
        config_name="image-editor", validators=[ImageAltTextValidator()]
19
    )
20

21
    def __init__(self, *args, **kwargs):
1✔
22
        super().__init__(*args, **kwargs)
×
23
        self.fields["description"].label = _("Description")
×
24

25
    class Meta:
1✔
26
        model = models.Topic
1✔
27
        fields = ["name", "description", "category", "labels"]
1✔
28
        help_texts = {
1✔
29
            "description": _(
30
                "If you add an image, please provide an alternate text. "
31
                "It serves as a textual description of the image content "
32
                "and is read out by screen readers. Describe the image "
33
                "in approx. 80 characters. Example: A busy square with "
34
                "people in summer."
35
            ),
36
        }
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