Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_missing_section_error():
updater = ConfigUpdater()
with pytest.raises(MissingSectionHeaderError):
updater.read_string("key = value")