next-exp/IC

Reorganize, simplify and clean up fixtures

Open

#913 aperta il 30 ott 2024

Vedi su GitHub
 (0 commenti) (0 reazioni) (1 assegnatario)Python (77 fork)auto 404
easygood first issuehelp wantedtesting

Metriche repository

Star
 (10 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

We use many fixtures. Most of them are thrown into invisible_cities/conftest.py without thinking much. Let's reorganize them following the following logic:

  • If they are used only in one file, move them to that file
  • If they are used only in one folder, move them to the conftest.py file in that folder
  • Otherwise, keep them in invisible_cities/conftest.py

Moreover, some of those fixtures are monstrous. Let's try to simplify them or replace them with test files whenever possible to keep things readable.

Guida contributor