(py_and_json: PyAndJson, input_value, expected)
| 280 | ], |
| 281 | ) |
| 282 | def test_date_future(py_and_json: PyAndJson, input_value, expected): |
| 283 | v = py_and_json(core_schema.date_schema(now_op='future')) |
| 284 | if isinstance(expected, Err): |
| 285 | with pytest.raises(ValidationError, match=re.escape(expected.message)): |
| 286 | v.validate_test(input_value) |
| 287 | assert v.isinstance_test(input_value) is False |
| 288 | else: |
| 289 | output = v.validate_test(input_value) |
| 290 | assert output == expected |
| 291 | assert v.isinstance_test(input_value) is True |
| 292 | |
| 293 | |
| 294 | def test_date_past_future_today(): |
nothing calls this directly
no test coverage detected