UCL-ARC / shortlister

0 stars 0 forks source link

Adding simple unit tests #27

Closed shiyingwucl closed 1 week ago

shiyingwucl commented 2 weeks ago

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?

tamuri commented 2 weeks ago

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.