Test cleanups after the 2.0 fix PRs

Aperta Adatta ai principianti
#464 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@shcheklein ci sta già lavorando.

Dal 5/12/2026.

  • #466 di @shcheklein — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
65/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
testing

Direzione di ricerca

Leggi il fixture service_auth in test_fs.py, quindi confronta i wrapper Get_Http_Object e monkeypatch aggiunti dai PR #453 e #456. Consolida il fixture duplicato per il traffico HTTP live dopo che il batch di PR per le correzioni 2.0 è stato unito; il lavoro è completato quando i test condividono un unico fixture e continuano a osservare il traffico HTTP live.

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

Descrizione

Test cleanups that the reviews of the 2.0 fix PRs (#450–#463) asked for. Each one touches files that several of those PRs change. Doing them inside the PRs would make every merge conflict with the next, so they wait until the batch is merged.

  • One fixture that observes the live HTTP traffic of service_auth. Today lose_answers (test_fs.py) has it, and #453 (sent_requests) and #456 (downloads) each add a copy of the same Get_Http_Object + monkeypatch wrapping.
  • One helper that reads a file's bytes by ID (content_on_drive), added by both #455 and #457. #457 no longer adds it, so only #455 has it and nothing needs merging.
  • Run every test_fs.py case on a folder-ID mount as well as a path mount, with the folder-ID round on one CI job only, then retire the cases in test_fs_folder_id.py (#457) that this covers. DVC remotes are usually folder IDs, and today only 10 hand-picked cases run on one.

🤖 Generated with Claude Code

Lingua principale
Python
Stelle
671
Fork
76
Merge medio
17h 55m
PR unite (30g)
46

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 iterative/PyDrive2

Tutte le issue di iterative/PyDrive2

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.