feat: add TTLCache for get_cache_version and TEMPLATE_AUTO_RELOAD config with Makefile worker count variables
This commit is contained in:
@@ -62,6 +62,8 @@ def test_news_sanitize_strips_html(local_db, capsys):
|
||||
uid = generate_uid()
|
||||
get_table("news").insert(
|
||||
{
|
||||
"deleted_at": None,
|
||||
"deleted_by": None,
|
||||
"uid": uid,
|
||||
"description": "<b>Bold</b> & clean",
|
||||
"content": "<p>Body</p>",
|
||||
@@ -80,6 +82,8 @@ def test_attachments_prune_removes_only_stale_orphans(local_db, capsys):
|
||||
attachments = get_table("attachments")
|
||||
attachments.insert(
|
||||
{
|
||||
"deleted_at": None,
|
||||
"deleted_by": None,
|
||||
"uid": old_uid,
|
||||
"target_type": "",
|
||||
"target_uid": "",
|
||||
@@ -88,6 +92,8 @@ def test_attachments_prune_removes_only_stale_orphans(local_db, capsys):
|
||||
)
|
||||
attachments.insert(
|
||||
{
|
||||
"deleted_at": None,
|
||||
"deleted_by": None,
|
||||
"uid": fresh_uid,
|
||||
"target_type": "",
|
||||
"target_uid": "",
|
||||
|
||||
Reference in New Issue
Block a user