BCStudentSoftwareDevTeam / BCStudentSoftwareDevTeam/lsf

Making Tests Independent From Academic Year Term Code

Open
#674 0 comments 0 reactions 0 assignees View on GitHub
draft on hold
Dominant language
Python
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

Description

## 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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Search the lsf tests for hard-coded termCode_id values and inspect how test data currently represents the academic year. Run the relevant test suite before and after the change; done means the tests use year-independent or automatically current term codes without requiring annual edits.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.