BCStudentSoftwareDevTeam / BCStudentSoftwareDevTeam/lsf

Making Tests Independent From Academic Year Term Code

Aperta
#674 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
draft on hold
Lingua principale
Python
Stelle
1
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## Issue Description
Currently, many lsf tests use the term code of the *"current"* academic year (`termCode_id="20XX00"`) for the test data. However, whenever a new academic year comes, that requires manually updating `termCode_id` to the **actual** current academic year.

## Example of where this can be problematic
For example, when academic year 2027-2028 hits, each occurrence of `termCode_id="202600"` will have to be manually changed to `termCode_id="202700"` everywhere in the test code. Forgetting to do this step will cause most of the tests to fail.

## What needs to be changed?

The current implementation is inconvenient. What should be instead is a different set of term codes that would work for any academic year OR a specific variable that would automatically detect the current academic year.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Cerca nei test lsf i valori termCode_id hard-coded e verifica come i dati di test rappresentano attualmente l’anno accademico. Esegui la suite di test pertinente prima e dopo la modifica; il lavoro è completato quando i test usano codici del periodo indipendenti dall’anno o aggiornati automaticamente, senza richiedere modifiche annuali.

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

Valutazione

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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.