Test cleanups after the 2.0 fix PRs

Open Beginner friendly
#464 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@shcheklein is already working on this.

Since Dec 5, 2026.

  • #466 by @shcheklein — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
testing

Research direction

Read the service_auth fixture in test_fs.py, then compare the Get_Http_Object and monkeypatch wrappers added by PRs #453 and #456. Consolidate the duplicated live HTTP traffic fixture after the 2.0 fix PR batch has merged; done means the tests share one fixture and still observe the live HTTP traffic.

Written by the indexing model from the issue text.

Description

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

Dominant language
Python
Stars
671
Forks
76
Avg merge
17h 55m
Merged PRs (30d)
46

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from iterative/PyDrive2

All issues in iterative/PyDrive2

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.