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

Adding simple unit tests #27

Open
shiyingwucl opened this issue Oct 29, 2024 · 1 comment
Open

Adding simple unit tests #27

shiyingwucl opened this issue Oct 29, 2024 · 1 comment
Labels
question Further information is requested

Comments

@shiyingwucl
Copy link
Collaborator

Testing is being covered in the moodle course this week, so I thought it might be good practice for me to come up with simple test for shortlister. Where do you think would be a good place in my code to start testing?

@shiyingwucl shiyingwucl added the question Further information is requested label Oct 29, 2024
@tamuri
Copy link
Collaborator

tamuri commented Oct 29, 2024

Yes, absolutely! You could start with writing tests for each of the load_ functions.

By convention, tests are put in a directory called tests and each of the test files are named test_???.py. For example, you can put your tests in file called test_model.py and inside there put functions test_load_role(), test_load_applicants() etc.

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

No branches or pull requests

2 participants