def test_get_filetype_err(): assert get_filetype("/a/b.conf") == None
def test_get_filetype(tdata1): filename, config_class, fmt = tdata1 assert get_filetype(filename) == FileType(filepath=filename, config_class=config_class, fmt=fmt)