MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / approx

Function approx

tests/scripts/test_frame_parsers.py:24–26  ·  view source on GitHub ↗

Return a pytest.approx wrapper with a relative tolerance.

(value, rel=1e-5)

Source from the content-addressed store, hash-verified

22
23
24def approx(value, rel=1e-5):
25 """Return a pytest.approx wrapper with a relative tolerance."""
26 return pytest.approx(value, rel=rel)
27
28
29def make_tlv(tag: int, value_bytes: bytes) -> list[int]:

Callers 15

test_temperatureMethod · 0.85
test_full_objectMethod · 0.85
test_all_keysMethod · 0.85
test_attitude_messageMethod · 0.85
test_gpggaMethod · 0.85
test_gprmcMethod · 0.85
test_gpvtgMethod · 0.85
test_nav_posllhMethod · 0.85
test_basicMethod · 0.85
test_percent_encodingMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected