microblog.pub/tests/test_tags.py

14 lines
307 B
Python
Raw Normal View History

2022-07-01 19:35:34 +02:00
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