[Test restructure 4] Reclassify misplaced tests at the unit/integration boundary

Open
#6,052 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
testing

Research direction

Start by reviewing the five named test files and their current directories, especially fixture use, mocking, external services, HTTP/TLS setup, and pytest markers. Reclassify or split each file as proposed, then verify that no test straddles unit, universal, component, and integration tiers and that test_dbt_integration.py no longer runs during unit CI.

Written by the indexing model from the issue text.

Description

What

Handle edge-case files that are currently in the wrong tier.

Files to investigate and reclassify

File Current location Issue Proposed action
test_mcp_feature_server.py integration/ Fully mocked, no external services, no markers Move to unit/
test_rest_error_decorator.py unit/ Uses environment fixture with no markers Investigate: refactor to remove environment dep (preferred) or move to universal/
test_offline_server.py unit/ Partially uses environment Split: env-dependent tests → universal/, rest stays in unit/
test_auth_registry_server.py unit/permissions/auth/server/ Starts real HTTP server with TLS Move to integration/auth/ or component/
test_dbt_integration.py integration/dbt/ Missing @pytest.mark.integration — runs during unit CI Will be fixed structurally by living in integration/dbt/

Note

Each file may need individual judgment. The goal is zero tests that straddle tier boundaries after this PR.

Dominant language
Python
Stars
7.4k
Forks
1.5k
Avg merge
2d 6h
Merged PRs (30d)
107

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from feast-dev/feast

All issues in feast-dev/feast

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.