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
pytest
inrequirements.txt
- Create a folder named
test
. - Create
test_*.py
for every existing python file where * will be replaced by the file name. - In each
test_*.py
import 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
pytest
in 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.