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_config(monkeypatch, config, capsys):
env, result, defaults, stderr = config
monkeypatch.setitem(os.environ, 'PYTHONHUNTERCONFIG', env)
assert load_config(('x',), {'y': 1}) == result
assert DEFAULTS == defaults
output = capsys.readouterr()
assert output.err.startswith(stderr)