python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
If you have added your RUNPOD_API_KEY
and
RUNPOD_ENDPOINT_ID
to the .env
file within
this directory, you should first comment them
out before attempting to test locally. If
the .env file exists and the values are provided,
the tests will attempt to send the requests to
your RunPod endpoint instead of running locally.
Once the venv is created and activated, the requirements
installed, and the credentials removed from the .env
file, you can change directory to the tests
directory
and run a script, for example:
cd tests
python txt2img.py
You obviously need to edit the payload within the script to achieve the desired results.