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

zostera / django-bootstrap4 / 5399170771

pending completion
5399170771

push

github

dyve
Remove support for Python 3.7 (EOL)

272 of 344 branches covered (79.07%)

Branch coverage included in aggregate %.

704 of 793 relevant lines covered (88.78%)

3.55 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
4✔
2

3

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

10

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