Skip to content

Commit

Permalink
Fix f-string assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartmaxwell committed Oct 5, 2024
1 parent 774e9ff commit 8f01dc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_templatetags_djpress_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,11 @@ def test_post2(user, category2):

@pytest.fixture
def test_long_post1(user, settings, category1):
truncate_tag = settings.DJPRESS_SETTINGS["TRUNCATE_TAG"]
post = Post.post_objects.create(
title="Test Long Post1",
slug="test-long-post1",
content=f"This is the truncated content.\n\n{settings.DJPRESS_SETTINGS["TRUNCATE_TAG"]}\n\nThis is the rest of the post.",
content=f"This is the truncated content.\n\n{truncate_tag}\n\nThis is the rest of the post.",
author=user,
status="published",
post_type="post",
Expand Down

0 comments on commit 8f01dc5

Please sign in to comment.