Compare commits
2 Commits
e9fb6102ab
...
v0.2.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5f79ce87f9 | ||
|
|
73a76c6667 |
@@ -18,5 +18,5 @@ BREVO_LIST_ID=0
|
|||||||
|
|
||||||
# Confirmation link
|
# Confirmation link
|
||||||
CONFIRM_SECRET=replace-with-a-long-random-string
|
CONFIRM_SECRET=replace-with-a-long-random-string
|
||||||
CONFIRM_BASE_URL=https://waitlist.adiuvai.com
|
CONFIRM_BASE_URL=https://adiuvai.com
|
||||||
CONFIRM_TOKEN_EXPIRY_HOURS=48
|
CONFIRM_TOKEN_EXPIRY_HOURS=48
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ class Settings(BaseSettings):
|
|||||||
|
|
||||||
# Confirmation link
|
# Confirmation link
|
||||||
CONFIRM_SECRET: str = secrets.token_hex(32) # override in production .env
|
CONFIRM_SECRET: str = secrets.token_hex(32) # override in production .env
|
||||||
CONFIRM_BASE_URL: str = "https://waitlist.adiuvai.com"
|
CONFIRM_BASE_URL: str = "https://adiuvai.com"
|
||||||
CONFIRM_TOKEN_EXPIRY_HOURS: int = 48
|
CONFIRM_TOKEN_EXPIRY_HOURS: int = 48
|
||||||
|
|
||||||
model_config = {"env_file": ".env", "env_file_encoding": "utf-8"}
|
model_config = {"env_file": ".env", "env_file_encoding": "utf-8"}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
import logging
|
import logging
|
||||||
from urllib.parse import urlencode
|
|
||||||
|
|
||||||
from fastapi import APIRouter, Depends, Request
|
from fastapi import APIRouter, Depends, Request
|
||||||
from fastapi.responses import HTMLResponse
|
from fastapi.responses import HTMLResponse
|
||||||
|
|||||||
@@ -9,4 +9,4 @@ class WaitlistRequest(BaseModel):
|
|||||||
|
|
||||||
class WaitlistResponse(BaseModel):
|
class WaitlistResponse(BaseModel):
|
||||||
ok: bool = True
|
ok: bool = True
|
||||||
message: str = "You're on the list!"
|
message: str = "Check your inbox for a confirmation link!"
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ async def test_join_waitlist_success(client):
|
|||||||
assert resp.status_code == 200
|
assert resp.status_code == 200
|
||||||
data = resp.json()
|
data = resp.json()
|
||||||
assert data["ok"] is True
|
assert data["ok"] is True
|
||||||
assert "list" in data["message"].lower()
|
assert "inbox" in data["message"].lower()
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
|
|||||||
Reference in New Issue
Block a user