Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

DBLog test are bound to other test

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
databases, testing

Direzione di ricerca

Inizia con tests/test_dblog.py ed esegui prima pytest tests/test_dblog.py da solo, poi la suite di test più ampia per riprodurre il risultato dipendente dallo stato. Esamina come il test legge il database e come vengono configurati i dati di test; il lavoro è completo quando il risultato è accurato e non cambia in base all’ordine dei test o allo stato precedente del database.

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

Descrizione

Description

The test_dblog.py check the content of the database during the test, running the test_dblog.py will always success because the database will be empty, but if other tests are runned before, the state of database may change and it may change the result of the test.

I think the test should be accurate, even if it's run alone or with other tests.

Environment

  • operating system:
  • Python version:
  • PyWPS version:
  • source/distribution
  • git clone
  • Debian
  • PyPI
  • zip/tar.gz
  • other (please specify):
  • web server
  • Apache/mod_wsgi
  • CGI
  • other (please specify):

Steps to Reproduce

run pytest tests/test_dblog.py alone.

Additional Information

Lingua principale
Python
Stelle
186
Fork
117
Merge medio
11g 20h
PR unite (30g)
1

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 geopython/pywps

Tutte le issue di geopython/pywps

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.