MCPcopy Create free account
hub / github.com/NSLS2/PyXRF / test_DoubleValidatorRelaxed_1

Function test_DoubleValidatorRelaxed_1

pyxrf/gui_module/tests/test_useful_widgets.py:153–157  ·  view source on GitHub ↗
(text, range, result)

Source from the content-addressed store, hash-verified

151])
152# fmt: on
153def test_DoubleValidatorRelaxed_1(text, range, result):
154 validator = DoubleValidatorRelaxed()
155 if range is not None:
156 validator.setRange(range[0], range[1], decimals=10)
157 assert validator.validate(text, 0)[0] == result, "Validation failed"
158
159
160# fmt: off

Callers

nothing calls this directly

Calls 2

validateMethod · 0.95

Tested by

no test coverage detected