| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This repository contains the example code for the article series on Pytest API Testing with FastAPI, SQLAlchemy, Postgres - Part-1 and Part 2.
To install the project, you need to have Poetry installed. If you don't have it installed, you can install it by following the instructions here.
To run the server, use the following command:
$ poetry run uvicorn app.main:app --host localhost --port 8000 --reloadThis will spin up the server at http://localhost:8000
To run the tests, use the following command:
$ poetry run pytest
$ poetry run pytest --dburl=postgresql://myuser:mypassword@localhost:5433/mydatabase_testPlease follow further instructions on how to run the app in the blog post.
If you have any questions about the project please raise an Issue on GitHub.
| Back | FazBrowse Home | New Git URL |