Exemplo n.º 1
0
def test_success():
    c = {'patterns': ['*.py'], 'reduced_redundancy': True}
    key_config = [c.copy() for r in range(10)]
    factory = parse.parse_key_config(key_config)
    k = factory.make_key(None, None, 'test')
    assert not k.reduced_redundancy
    k = factory.make_key(None, None, 'test.py')
    assert k.reduced_redundancy
Exemplo n.º 2
0
def test_success():
    c = {'patterns': ['*.py'], 'reduced_redundancy': True}
    key_config = [c.copy() for r in range(10)]
    factory = parse.parse_key_config(key_config)
    k = factory.make_key(None, None, 'test')
    assert not k.reduced_redundancy
    k = factory.make_key(None, None, 'test.py')
    assert k.reduced_redundancy
Exemplo n.º 3
0
def test_non_list_config():
    parse.parse_key_config({'invalid': 'invalid'})
Exemplo n.º 4
0
def test_non_list_config():
    parse.parse_key_config({'invalid': 'invalid'})