NCAS-CMS / NCAS-CMS/cf-python

Explicit object representation testing

Aperta
#280 0 commenti 1 reazione 1 assegnatario Vedi su GitHub

@sadielbartholomew ci sta già lavorando.

Dal 24/11/2021.

testing
Lingua principale
Python
Stelle
150
Fork
23
Merge medio
1g 11h
PR unite (30g)
2

Descrizione

Our test suite currently tests for most (but not all) core cf objects that the inspection (__repr__, __str__ and in cases where applicable, dump) methods don't error, without going further and checking that they give the desired output explicitly, typically something close to this:

https://github.com/NCAS-CMS/cf-python/blob/63ffeae84c2d9e479d52b499c60b910cc99e75c6/cf/test/test_AuxiliaryCoordinate.py#L56-L60

It would be nice, ideally, to test that the outputs are correct and exactly as they should be, to capture representation issues and typos such as that raised in #279 (which I fixed without adding a dedicated test to capture it because most, if not all, of our representation tests lack such an explicit test and it would be best to get such tests all added as a batch, I think).

Guida per i contributori

Apri la guida per i contributori

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.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.