Hey Chop, this is TLDR:
-
Download the Swagger Codegen JAR (latest release) from Maven Repository.
-
Generate Python API Test:
Run the following command in your terminal:
java -jar {path to swagger-codegen-cli.jar} generate -i {link to swagger json} -l python -o {absolute path to output folder} -
Install Dependencies:
Run the following command to install necessary Python packages:
py ./setup.py install -
Run Unit Tests:
Finally, execute the unit tests with:
python -m unittest