mirror of
https://github.com/boostorg/website-v2.git
synced 2026-02-27 05:32:08 +00:00
- 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
13 lines
270 B
Python
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>",
|
|
)
|