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

zostera / django-bootstrap4 / 5398229605

pending completion
5398229605

push

github

dyve
Remove Django 2 support

277 of 344 branches covered (80.52%)

Branch coverage included in aggregate %.

689 of 773 relevant lines covered (89.13%)

4.42 hits per line

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

100.0
/src/bootstrap4/text.py
1
from django.utils.encoding import force_str
5✔
2

3

4
def text_value(value):
5✔
5
    """Force a value to text, render None as an empty string."""
6
    if value is None:
5✔
7
        return ""
5✔
8
    return force_str(value)
5✔
9

10

11
def text_concat(*args, **kwargs):
5✔
12
    """Concatenate several values as a text string with an optional separator."""
13
    separator = text_value(kwargs.get("separator", ""))
5✔
14
    values = filter(None, [text_value(v) for v in args])
5✔
15
    return separator.join(values)
5✔
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