Twitter-video-emotion-and-sentiment-analysis
Twitter-video-emotion-and-sentiment-analysis copied to clipboard
Add Pytest for testing all the existing functions
Pytest is a great library to check whether the functions in the codebase is working properly or not, and see if any change is causing issues in the existing functions.
Procedure:
- Add
pytestinrequirements.txt - Create a folder named
test. - Create
test_*.pyfor every existing python file where * will be replaced by the file name. - In each
test_*.pyimport the all python file for which the test you are writing. Create a function of the same name and run the main function in it for which the test is written. - At the end run the test file by using
if __name__ == "__main__":and run the test function in it. - Do this process for every python file in the codebase.
- Run command
pytestin the main directory to check if all functions are passing.
is someone working on this issue??please reply
No. @TG922 do you know how to integrate this?
@TG922 it would be a great addition to the codebase, if you want to work on it, I can assign you.