To run the tests, start the worker first by opening a separate window in terminal and running "python worker.py". Then, run "python -m pytest" in another window. Also, make sure to change the file path for YOLO and other file paths to your local directory.