Spaces Data
Minimal test - lines (95, 103)
path: .spaces[8].metrics.mi.mi_visual_studio
old: 69.23082478169117
new: 68.11498549652543
path: .spaces[8].metrics.mi.mi_original
old: 118.38471037669191
new: 116.47662519905847
path: .spaces[8].metrics.mi.mi_sei
old: 121.33303727996189
new: 125.897573839986
path: .spaces[8].metrics.loc.cloc
old: 1.0
new: 2.0
path: .spaces[8].metrics.loc.sloc
old: 8.0
new: 9.0
Code
def test_malformed_file(config_path, write_config):
"""Ensure that a malformed config file doesn't cause breakage."""
write_config(
"""[foo
bar = 1
"""
)
assert not update_or_create_build_telemetry_config(config_path)
# Can't read config, it will not have been written!