def test_include_all_exclude_empty(): var_name = get_var(rules[0], 'include-all-exclude-empty') var = Variable(var_name)
def test_missing_required(): with pytest.raises(KeyError): var_name = get_var(rules[0], 'missing-required') var = Variable(var_name)
def test_omit_excludes(): var_name = get_var(rules[0], 'omit-excludes') var = Variable(var_name)
def test_empty_excludes(): var_name = get_var(rules[0], 'empty-excludes') var = Variable(var_name)
def test_empty_excludes_includes_with_spaces(): var_name = get_var(rules[0], 'empty-excludes-includes-with-spaces') var = Variable(var_name)
def test_minimal_var(): var_name = get_var(rules[0], 'minimal-var') var = Variable(var_name)
def test_constant(capsys): var_name = get_var(rules[0], 'constant') var = Variable(var_name) assert var.get_matches({}) == {'constant': 'constant-value'}