Skip to content

Commit e540a80

Browse files
committed
docs: add rules for fastapi route implementation and route tests
Generated-by: aiautocommit
1 parent ac98790 commit e540a80

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
The file docstring contains a description of the FastAPI routes we need to implement. Implement these routes.
2+
3+
Avoid implementing any Stripe logic right now. I will do that later. Leave TODOs for this and other areas where you are very unsure of what to do.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
globs: tests/routes/**/*.py
3+
alwaysApply: false
4+
---
5+
6+
## Python Route Tests
7+
8+
- Polyfactory is the [factory](tests/factories.py) library in use. `ModelNameFactory.build()` is how you generate factories.
9+
- Use `assert_status(response)` to check the response of a client

0 commit comments

Comments
 (0)