takahe/tests/activities/views/test_timelines.py
Andrew Godwin 9ad9bdd936 Implement post rate limits, move to signed cookies
Also improve the test harness a little
Fixes #112
2022-12-15 15:55:33 -07:00

12 lines
330 B
Python

import pytest
@pytest.mark.django_db
def test_content_warning_text(client_with_identity, config_system):
config_system.content_warning_text = "Content Summary"
response = client_with_identity.get("/")
assert response.status_code == 200
assert 'placeholder="Content Summary"' in str(response.rendered_content)