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

LeanderCS / flask-inputfilter / #132

09 Mar 2025 10:59AM UTC coverage: 91.233% (-6.7%) from 97.948%
#132

push

coveralls-python

LeanderCS
Add google analytics

0 of 104 new or added lines in 8 files covered. (0.0%)

1384 of 1517 relevant lines covered (91.23%)

0.91 hits per line

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

0.0
/flask_inputfilter/Validator/IsLowercaseValidator.py
NEW
1
from typing import Any, Optional
×
2

NEW
3
from flask_inputfilter.Exception import ValidationError
×
NEW
4
from flask_inputfilter.Validator import BaseValidator
×
5

6

NEW
7
class IsLowercaseValidator(BaseValidator):
×
8
    """
9
    Validator that checks if a value is entirely lowercase.
10
    """
11

NEW
12
    def __init__(self, error_message: Optional[str] = None) -> None:
×
NEW
13
        self.error_message = (
×
14
            error_message or "Value is not entirely lowercase."
15
        )
16

NEW
17
    def validate(self, value: Any) -> None:
×
NEW
18
        if not isinstance(value, str):
×
NEW
19
            raise ValidationError("Value must be a string.")
×
NEW
20
        if not value.islower():
×
NEW
21
            raise ValidationError(self.error_message)
×
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