Skip to content

test fails for pytest #228

@zixiao-ye

Description

@zixiao-ye

Bug Description

Hi, I clone the repository and try to run all the tests locally. I am following the contributing guide. Failed when testing the tests/test_filter.py. Btw, It seems the uv sync process also does not work, as I also have the "No module name" issue for many packages when testing.

Expected Behavior

Steps to Reproduce

Exactly following the Contributing Guide

# Install uv if you haven't already
curl -LsSf https://astral.sh/uv/install.sh | sh

# Clone the repository
git clone git@github.com:lotus-data/lotus.git
cd lotus

# Install lotus and all dependencies (including dev dependencies)
uv sync --dev

uv run pytest tests/test_filter.py

Environment Information

Operating System:

  • macOS
  • Linux
  • Windows
  • Other (please specify)

Python Version:
Python 3.10

Package Versions:

Error Messages and Logs

FAILED tests/test_filter.py::TestSearch::test_basic_search - AttributeError: 'DataFrame' object has no attribute 'sem_index'. Did you mean: 'set_index'?
FAILED tests/test_filter.py::TestSearch::test_filtered_search_relational - AttributeError: 'DataFrame' object has no attribute 'sem_index'. Did you mean: 'set_index'?
FAILED tests/test_filter.py::TestSearch::test_filtered_search_semantic - AttributeError: 'DataFrame' object has no attribute 'sem_index'. Did you mean: 'set_index'?
FAILED tests/test_filter.py::TestSearch::test_filtered_search_combined - AttributeError: 'DataFrame' object has no attribute 'sem_index'. Did you mean: 'set_index'?
FAILED tests/test_filter.py::TestSearch::test_filtered_search_empty_result - AttributeError: 'DataFrame' object has no attribute 'sem_index'. Did you mean: 'set_index'?
FAILED tests/test_filter.py::TestSearch::test_filtered_search_with_scores - AttributeError: 'DataFrame' object has no attribute 'sem_index'. Did you mean: 'set_index'

Screenshots

Minimal Reproduction Example

# Install uv if you haven't already
curl -LsSf https://astral.sh/uv/install.sh | sh

# Clone the repository
git clone git@github.com:lotus-data/lotus.git
cd lotus

# Install lotus and all dependencies (including dev dependencies)
uv sync --dev

uv run pytest tests/test_filter.py

Additional Context

Checklist

  • I have searched existing issues to avoid duplicates
  • I have provided all required information
  • I have tested with the latest version of the package
  • I have included a minimal reproduction example (if applicable)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions