Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No unit testing exists for any of the helper functions #14

Open
Aypak opened this issue Nov 10, 2021 · 0 comments
Open

No unit testing exists for any of the helper functions #14

Aypak opened this issue Nov 10, 2021 · 0 comments

Comments

@Aypak
Copy link
Contributor

Aypak commented Nov 10, 2021

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:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant