File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -151,8 +151,15 @@ poetry run alembic upgrade head
151151
152152___
153153## Testing
154- TODO
154+ While in the tests folder, create your test file with the name "test_ {object}.py", replacing object with what you're testing
155+ ``` sh
156+ touch test_items.py
157+ ```
155158
159+ Create your tests (you may want to copy the structure in test_user.py), then run:
160+ ``` sh
161+ poetry run python -m pytest
162+ ```
156163___
157164# Other stuff
158165## Contributing
1641716 . Create a new Pull Request
165172
166173## References
167- TODO
174+ This project was inspired by a few projects, it's based on them with things changed to the way I like (and pydantic, sqlalchemy updated)
175+ * [ ` Full Stack FastAPI and PostgreSQL ` ] ( https://github.com/tiangolo/full-stack-fastapi-postgresql ) by @tiangolo himself
176+ * [ ` FastAPI Microservices ` ] ( https://github.com/Kludex/fastapi-microservices ) by @kludex which heavily inspired this boilerplate
177+ * [ Async Web API with FastAPI + SQLAlchemy 2.0] ( https://github.com/rhoboro/async-fastapi-sqlalchemy )
168178
169179## License
170180[ ` MIT ` ] ( LICENSE.md )
Original file line number Diff line number Diff line change 1- from typing import List
21from fastapi .testclient import TestClient
32from decouple import config
43
54from src .app .main import app
65from tests .helper import _get_token
7- from app .schemas .user import UserCreate , UserRead , UserUpdate
86
97test_name = config ("TEST_NAME" )
108test_username = config ("TEST_USERNAME" )
You can’t perform that action at this time.
0 commit comments