This repository has been archived on 2023-09-24. You can view files and clone it, but cannot push or open issues or pull requests.
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

13 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)