MCPcopy Create free account
hub / github.com/AstrBotDevs/AstrBot / failing_dump

Method failing_dump

tests/unit/test_config.py:591–594  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

589 original_content = f.read()
590
591 def failing_dump(*args, **kwargs):
592 file_obj = args[1]
593 file_obj.write("{")
594 raise RuntimeError("simulated interrupted write")
595
596 config.new_field = "new_value"
597 monkeypatch.setattr(

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected