<reponame>rtpsw/ibis<gh_stars>1-10
import pytest

pytest.importorskip("datafusion")


def test_register_csv(client, data_directory):
    path = data_directory / 'functional_alltypes.csv'
    client.register_csv("ft_csv", path)
    assert "ft_csv" in client.list_tables()


def test_register_parquet(client, data_directory):
    path = data_directory / 'functional_alltypes.parquet'
    client.register_parquet("ft_parquet", path)
    assert "ft_parquet" in client.list_tables()

import pytest

pytest.importorskip("datafusion")


def test_register_csv(client, data_directory):
    path = data_directory / 'functional_alltypes.csv'
    client.register_csv("ft_csv", path)
    assert "ft_csv" in client.list_tables()


def test_register_parquet(client, data_directory):
    path = data_directory / 'functional_alltypes.parquet'
    client.register_parquet("ft_parquet", path)
    assert "ft_parquet" in client.list_tables()