diff --git a/app/templates/book/interpretation_view.html b/app/templates/book/interpretation_view.html index cc13ff4..4c5187c 100644 --- a/app/templates/book/interpretation_view.html +++ b/app/templates/book/interpretation_view.html @@ -169,7 +169,7 @@
- {{interpretation.user.username}} on {{interpretation.created_at.strftime('%B %d, %Y')}} + {{interpretation.user.username}} on {{interpretation.created_at.strftime('%B %d, %Y')}}
diff --git a/tests/test_book.py b/tests/test_book.py index 20fcd78..5100f75 100644 --- a/tests/test_book.py +++ b/tests/test_book.py @@ -867,9 +867,7 @@ def test_crud_interpretation(client: FlaskClient, runner: FlaskCliRunner): # edit m.Interpretation( - label="Test", - text="Test", - section_id=section_in_collection.id, + label="Test", text="Test", section_id=section_in_collection.id, user_id=user.id ).save() m.Interpretation( diff --git a/tests/test_users.py b/tests/test_users.py index 6cc3921..3b0c2f4 100644 --- a/tests/test_users.py +++ b/tests/test_users.py @@ -139,4 +139,3 @@ def test_profile(client): ) assert res assert user.is_deleted - assert user.books[0].is_deleted