mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-22 23:30:59 +00:00
9ad9bdd936
Also improve the test harness a little Fixes #112
12 lines
330 B
Python
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)
|