Test cleanups after the 2.0 fix PRs

Aberta Para iniciantes
#464 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

@shcheklein já está trabalhando nisso.

Desde 5/12/2026.

  • #466 de @shcheklein — aberto

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
65/100
Tipo de issue
Refatoração
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
python
Domínio
testing

Direção de pesquisa

Leia o fixture service_auth em test_fs.py e depois compare os wrappers Get_Http_Object e monkeypatch adicionados pelos PRs #453 e #456. Consolide o fixture duplicado de tráfego HTTP ao vivo depois que o lote de PRs de correção 2.0 for integrado; o trabalho estará concluído quando os testes compartilharem um único fixture e continuarem observando o tráfego HTTP ao vivo.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
Python
Estrelas
671
Forks
76
Merge médio
17h 55min
PRs com merge (30d)
46

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de iterative/PyDrive2

Todas as issues de iterative/PyDrive2

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.