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

Aperta
#6,052 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
testing

Direzione di ricerca

Inizia esaminando i cinque file di test indicati e le relative directory attuali, prestando particolare attenzione all’uso dei fixture, al mocking, ai servizi esterni, alla configurazione HTTP/TLS e ai marker di pytest. Riclassifica o suddividi ogni file come proposto, quindi verifica che nessun test si sovrapponga ai livelli unit, universal, component e integration e che test_dbt_integration.py non venga più eseguito durante la CI di unit.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
7.4k
Fork
1.5k
Merge medio
2g 6h
PR unite (30g)
107

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di feast-dev/feast

Tutte le issue di feast-dev/feast

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.