(text, range, result)
| 37 | @pytest.mark.xfail(reason="Test fails with PyQT 5.9: remove 'xfail' once transition to conda-forge is complete") |
| 38 | # fmt: on |
| 39 | def test_IntValidatorStrict(text, range, result): |
| 40 | validator = IntValidatorStrict() |
| 41 | if range is not None: |
| 42 | validator.setRange(range[0], range[1]) |
| 43 | assert validator.validate(text, 0)[0] == result, "Validation failed" |
| 44 | |
| 45 | |
| 46 | # ============================================================== |
nothing calls this directly
no test coverage detected