Twitter-video-emotion-and-sentiment-analysis icon indicating copy to clipboard operation
Twitter-video-emotion-and-sentiment-analysis copied to clipboard

Add Pytest for testing all the existing functions

Open anandxkumar opened this issue 2 years ago • 3 comments

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 in requirements.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.

anandxkumar avatar Mar 09 '22 16:03 anandxkumar

is someone working on this issue??please reply

TG922 avatar Apr 21 '22 15:04 TG922

No. @TG922 do you know how to integrate this?

hritikksingh avatar Apr 27 '22 03:04 hritikksingh

@TG922 it would be a great addition to the codebase, if you want to work on it, I can assign you.

anandxkumar avatar Apr 29 '22 04:04 anandxkumar