Example #1
0
def test_parse_key_configurator_success():
    c = {'patterns': ['*.py'], 'reduced_redundancy': True}
    configurator = parse.parse_key_configurator(c)
    assert configurator.effects_key('test.py')
    assert not configurator.effects_key('test.md')
    assert configurator.reduced_redundancy
Example #2
0
def test_parse_key_configurator_success():
    c = {'patterns': ['*.py'], 'reduced_redundancy': True}
    configurator = parse.parse_key_configurator(c)
    assert configurator.effects_key('test.py')
    assert not configurator.effects_key('test.md')
    assert configurator.reduced_redundancy
Example #3
0
def test_parse_key_configurator_invalid_kwarg():
    parse.parse_key_configurator({'invalid': 'invalid'})
Example #4
0
def test_parse_key_configurator_invalid_kwarg():
    parse.parse_key_configurator({'invalid': 'invalid'})