Files
website-v2/core/tests/fixtures.py
Lacey Williams Henschel 825dbc019b Cache asciidoc content in db (Part of #394)
- Add RenderedContent model and related helper methods
- Change StaticContentView `get()` logic to try the cache, then the db, then S3
- Change StaticContentView to update db appropriately
- Refactoring for readability/maintainability
2023-06-09 14:43:05 -07:00

13 lines
270 B
Python

import pytest
from model_bakery import baker
@pytest.fixture
def rendered_content(db):
return baker.make(
"core.RenderedContent",
cache_key="cache-key",
content_original="Sample content",
content_html="<p>Sample content</p>",
)