def test_random_ast(query_random_body): try: _ = query(query_random_body) assert False except BadASTException: return assert False
def test_pandas_ast(query_pandas_body): try: _ = query(query_pandas_body) assert False except BadASTException: return assert False
def test_local_files_with_prefix(good_query_ast_body, mock_good_rabbit_call, with_local_prefix, with_prefix_env): a = query(good_query_ast_body) assert 'localfiles' in a fd = a['localfiles'] assert len(fd) == 1 assert len(fd[0]) == 2 fspec, tname = fd[0] assert fspec == 'G:\\file.root' assert tname == 'dudetree3'
def test_good_call_no_prefix(good_query_ast_body, mock_good_rabbit_call, no_prefix_env): a = query(good_query_ast_body) assert a is not None assert 'files' in a fd = a['files'] assert len(fd) == 1 assert len(fd[0]) == 2 fspec, tname = fd[0] assert fspec == 'file.root' assert tname == 'dudetree3'