forked from retoor/devplacepy
feat: scaffold initial DevPlace project with FastAPI, SQLite auth, and SSR routing
Add complete project skeleton including .gitignore, Makefile, AGENTS.md, config, database init with indexes, main app with router mounting for auth/feed/posts/comments/projects/profile/messages/notifications/votes, Pydantic models for signup/login/post/comment/project/message/profile, and auth router with signup/login page rendering and form handling.
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"tests": [
|
||||
{
|
||||
"name": "Landing page returns 200",
|
||||
"method": "GET",
|
||||
"path": "/",
|
||||
"expect_status": 200
|
||||
},
|
||||
{
|
||||
"name": "Signup page returns 200",
|
||||
"method": "GET",
|
||||
"path": "/auth/signup",
|
||||
"expect_status": 200
|
||||
},
|
||||
{
|
||||
"name": "Login page returns 200",
|
||||
"method": "GET",
|
||||
"path": "/auth/login",
|
||||
"expect_status": 200
|
||||
},
|
||||
{
|
||||
"name": "Feed redirects to login when not authenticated",
|
||||
"method": "GET",
|
||||
"path": "/feed",
|
||||
"expect_status": 303
|
||||
},
|
||||
{
|
||||
"name": "Static CSS is served",
|
||||
"method": "GET",
|
||||
"path": "/static/css/variables.css",
|
||||
"expect_status": 200
|
||||
},
|
||||
{
|
||||
"name": "Static JS is served",
|
||||
"method": "GET",
|
||||
"path": "/static/js/Application.js",
|
||||
"expect_status": 200
|
||||
},
|
||||
{
|
||||
"name": "User signup works",
|
||||
"method": "POST",
|
||||
"path": "/auth/signup",
|
||||
"form": {
|
||||
"username": "testuser",
|
||||
"email": "test@devplace.com",
|
||||
"password": "test123",
|
||||
"confirm_password": "test123"
|
||||
},
|
||||
"expect_status": 303
|
||||
},
|
||||
{
|
||||
"name": "User login works",
|
||||
"method": "POST",
|
||||
"path": "/auth/login",
|
||||
"form": {
|
||||
"email": "test@devplace.com",
|
||||
"password": "test123"
|
||||
},
|
||||
"expect_status": 303
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user