Beispiel #1
0
def test_date_time_format_validator_with_valid_dateties(value):
    from django.core.exceptions import ValidationError
    date_time_format_validator(value)
Beispiel #2
0
def test_date_time_format_validator_detects_invalid_values(value):
    from django.core.exceptions import ValidationError
    with pytest.raises(ValidationError):
        date_time_format_validator(value)
Beispiel #3
0
def test_date_time_format_validator_with_valid_dateties(value):
    date_time_format_validator(value)
Beispiel #4
0
def test_date_time_format_validator_skips_non_string_types(value):
    date_time_format_validator(value)
Beispiel #5
0
def test_date_time_format_validator_detects_invalid_values(value):
    with pytest.raises(ValidationError):
        date_time_format_validator(value)