You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No unit tests exist for any of the functions contained in the scripts. This implies that testing needs to be done manually whenever a change is made, which can be both time consuming and prone to human error.
Suggested Solution
The functions in all of these scripts perform CRUD operations on the following models:
Facility
FacilityUser
Lesson
Exam (Quiz)
ContentNode
ChannelMetaData
Using pytest and associated libraries, created unit tests for each of the functions in helpers.py.
The tests should reside in the test directory and must be runnable using pytest.
The tests should follow the style of test_facilityuser. This means that they are grouped into separate files and classes depending which type of model is being tested.
The text was updated successfully, but these errors were encountered:
Observed behavior
No unit tests exist for any of the functions contained in the scripts. This implies that testing needs to be done manually whenever a change is made, which can be both time consuming and prone to human error.
Suggested Solution
The functions in all of these scripts perform CRUD operations on the following models:
Using pytest and associated libraries, created unit tests for each of the functions in helpers.py.
The tests should reside in the test directory and must be runnable using pytest.
The tests should follow the style of test_facilityuser. This means that they are grouped into separate files and classes depending which type of model is being tested.
The text was updated successfully, but these errors were encountered: