Automated tests for routes and queries

Aperta
#50 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
65/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
flask, github-actions, python
Ambito
backend, ci-cd, testing

Direzione di ricerca

Start from the Flask app factory and the route definitions for store, game page, login, register, buy and review; read how the Supabase client is created so it can be replaced with a fake through Flask's test client. Add pytest tests under a new tests directory, plus requirements-dev.txt, and wire them into .github/workflows/checks.yml. Done when the suite covers those routes, including CSRF and login-required cases, and runs in CI without secrets.

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

Descrizione

backend help wanted

Add a pytest suite so changes can be checked automatically.

  • Use Flask's test client with the database client replaced by a fake (no real Supabase needed)
  • Cover the store, game page, login, register, buy and review routes, including CSRF and login-required checks
  • Add requirements-dev.txt and run the tests in .github/workflows/checks.yml
  • The tests must not need any secrets
Lingua principale
CSS
Stelle
1
Fork
1
Merge medio
39m
PR unite (30g)
6

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 NotADIM2/GameVault

Tutte le issue di NotADIM2/GameVault

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.