Tweak design and AP tag supports
This commit is contained in:
@@ -16,6 +16,19 @@ from tests import factories
|
||||
from tests.utils import generate_admin_session_cookies
|
||||
|
||||
|
||||
def test_outbox__no_activities(
|
||||
db: Session,
|
||||
client: TestClient,
|
||||
) -> None:
|
||||
response = client.get("/outbox", headers={"Accept": ap.AP_CONTENT_TYPE})
|
||||
|
||||
assert response.status_code == 200
|
||||
|
||||
json_response = response.json()
|
||||
assert json_response["totalItems"] == 0
|
||||
assert json_response["orderedItems"] == []
|
||||
|
||||
|
||||
def test_send_follow_request(
|
||||
db: Session,
|
||||
client: TestClient,
|
||||
|
13
tests/test_tags.py
Normal file
13
tests/test_tags.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from fastapi.testclient import TestClient
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
from app import activitypub as ap
|
||||
|
||||
|
||||
def test_tags__no_tags(
|
||||
db: Session,
|
||||
client: TestClient,
|
||||
) -> None:
|
||||
response = client.get("/t/nope", headers={"Accept": ap.AP_CONTENT_TYPE})
|
||||
|
||||
assert response.status_code == 404
|
Reference in New Issue
Block a user