Esempio n. 1
0
def test_not_implemented_parser():
    filename = 'filename.dsa-dsa-dsaasd'
    with pytest.raises(NotImplementedError):
        parsers.get_parser(filename)
Esempio n. 2
0
def test_not_implemented_parser():
    filename = 'filename.dsa-dsa-dsaasd'
    with pytest.raises(NotImplementedError):
        parsers.get_parser(filename)
Esempio n. 3
0
def test_get_parser(valid_parser):
    ext, parser = valid_parser
    fetched = parsers.get_parser('filename.' + ext)
    assert parser == fetched
Esempio n. 4
0
def test_get_parser(valid_parser):
    ext, parser = valid_parser
    fetched = parsers.get_parser('filename.' + ext)
    assert parser == fetched