2022-11-22 18:52:40 -08:00
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.django_db
|
2022-12-15 14:55:33 -08:00
|
|
|
def test_content_warning_text(client_with_identity, config_system):
|
2022-11-22 18:52:40 -08:00
|
|
|
|
|
|
|
config_system.content_warning_text = "Content Summary"
|
2022-12-15 14:55:33 -08:00
|
|
|
|
|
|
|
response = client_with_identity.get("/")
|
|
|
|
|
|
|
|
assert response.status_code == 200
|
|
|
|
assert 'placeholder="Content Summary"' in str(response.rendered_content)
|