Skip to content

fix: Test collection errors for parquet, backend_capability, issue_160 (#476)#486

Merged
eddiethedean merged 1 commit intov4.0.0from
fix/476-test-collection-errors
Feb 12, 2026
Merged

fix: Test collection errors for parquet, backend_capability, issue_160 (#476)#486
eddiethedean merged 1 commit intov4.0.0from
fix/476-test-collection-errors

Conversation

@eddiethedean
Copy link
Owner

Summary

Fixes #476: pytest collection no longer fails for the four modules when running with Robin backend (or when Polars is not installed).

Changes

  • test_parquet_format_table_append.py: Removed top-level PolarsStorageManager import. The test that uses it (test_storage_manager_detached_write_visible_to_session) now calls pytest.importorskip("polars") and imports PolarsStorageManager locally, so the module collects successfully when Polars is missing.
  • test_backend_capability_model.py: Added pytest.importorskip("polars") before importing PolarsMaterializer, so the module is skipped at collection when Polars is not installed (no ImportError).
  • test_issue_160_manual_cache_manipulation.py and test_issue_160_nested_operations.py: Added pytest.importorskip("polars") before import polars as pl, so collection succeeds when Polars is not installed.
  • v4_robin_skip_list.txt: Added the three Polars-only test modules (test_backend_capability_model.py, test_issue_160_manual_cache_manipulation.py, test_issue_160_nested_operations.py) so they are skipped when SPARKLESS_TEST_BACKEND=robin.

Verification

With SPARKLESS_TEST_BACKEND=robin and no Polars installed, pytest tests/parity/dataframe/test_parquet_format_table_append.py tests/test_backend_capability_model.py tests/test_issue_160_manual_cache_manipulation.py tests/test_issue_160_nested_operations.py --collect-only completes with 0 collection errors (parquet tests collected; other modules skipped via importorskip).

Made with Cursor

…60 tests (#476)

- test_parquet_format_table_append: remove top-level PolarsStorageManager
  import; use pytest.importorskip('polars') and local import in the test
  that needs it so collection succeeds when polars is not installed.
- test_backend_capability_model: add pytest.importorskip('polars') before
  PolarsMaterializer import so module is skipped when polars missing.
- test_issue_160_manual_cache_manipulation, test_issue_160_nested_operations:
  add pytest.importorskip('polars') before importing polars so collection
  succeeds when polars is not installed.
- v4_robin_skip_list: add the three Polars-only test modules so they are
  skipped when SPARKLESS_TEST_BACKEND=robin.

Co-authored-by: Cursor <cursoragent@cursor.com>
@eddiethedean eddiethedean merged commit 0945d74 into v4.0.0 Feb 12, 2026
5 of 6 checks passed
@eddiethedean eddiethedean deleted the fix/476-test-collection-errors branch February 12, 2026 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant