Poetry extras: test gaps and a small cleanup after #246

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
69/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
cli, testing

Direzione di ricerca

Start with tests/test_uv_selection.py and locate the Poetry extras tests; read the selection logic and its callers to understand how selected groups combine extra and platform markers. Add the named regression cases, then decide whether check.poetry_marker_holds should be removed with its tests or used. Done when the new tests cover the stated cases and the existing suite passes.

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

Descrizione

good first issue

Mutation testing of #246 (--extra on poetry.lock) left a few gaps. The behaviour is right; the tests don't pin it.

What to do

  • tests/test_uv_selection.py (or wherever the Poetry extras tests live):
    • an extra repeated as x = ["requests"] and y = ["requests[socks]"] must count as declared differently (the says string includes extras), and the same with a URL requirement;
    • a lock with no extras and no pyproject.toml prints no note.
  • check.poetry_marker_holds is only used by tests now; remove it (and its tests) or use it.
  • Precision: when a package's selected groups mix a pure-extra marker that is false with a platform marker ({main: 'extra == "x"', dev: 'sys_platform == "darwin"'}, no extra selected), drop the false pure marker so the package is checked only where the platform marker holds. Add a test.
Lingua principale
Python
Stelle
0
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 patrickballard/wheelgap

Tutte le issue di patrickballard/wheelgap

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.