Test cleanups after the 2.0 fix PRs

Offen Anfängerfreundlich
#464 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@shcheklein arbeitet bereits daran.

Seit 05.12.2026.

  • #466 von @shcheklein — offen

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
65/100
Issue-Typ
Refactoring
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
python
Bereich
testing

Rechercherichtung

Lies das service_auth-Fixture in test_fs.py und vergleiche dann die durch PRs #453 und #456 hinzugefügten Wrapper Get_Http_Object und monkeypatch. Fasse das duplizierte Fixture für Live-HTTP-Traffic zusammen, nachdem der PR-Batch mit den 2.0-Fixes gemergt wurde; abgeschlossen ist die Aufgabe, wenn die Tests ein gemeinsames Fixture verwenden und weiterhin den Live-HTTP-Traffic beobachten.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
Python
Sterne
671
Forks
76
Ø Merge
17 Std. 55 Min.
Gemergte PRs (30 T.)
46

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus iterative/PyDrive2

Alle Issues in iterative/PyDrive2

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.