MCPcopy Create free account
hub / github.com/TheMariday/marimapper / test_missing_headers

Function test_missing_headers

test/test_2d_map.py:31–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30
31def test_missing_headers():
32 temp_led_map_file = tempfile.NamedTemporaryFile(delete=False, suffix=".csv")
33 temp_led_map_file.write(
34 b"""index,v,u
350,0.379490,0.407710"""
36 )
37
38 temp_led_map_file.close()
39
40 led_map = load_detections(Path(temp_led_map_file.name), 0)
41
42 assert led_map is None, "led map successfully loaded without correct headers"
43
44
45def test_invalid_path():

Callers

nothing calls this directly

Calls 3

load_detectionsFunction · 0.90
writeMethod · 0.80
closeMethod · 0.80

Tested by

no test coverage detected