import pandas as pd

import pandaview  # noqa: F401  # ensure accessor is registered


def test_see_accessor_is_callable():
    df = pd.DataFrame({"a": [1, 2, 3]})

    # Accessor should exist and be callable
    assert hasattr(df, "see")
    accessor = df.see
    assert callable(accessor)

    # Calling should not raise, even outside of a notebook environment
    accessor(rows=2)