How to use the hunter.config.DEFAULTS function in hunter

To help you get started, we’ve selected a few hunter examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ionelmc / python-hunter / tests / View on Github external
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)