fix tests

This commit is contained in:
Kostiantyn Stoliarskyi 2023-05-15 12:54:41 +03:00
parent 28fb60a240
commit 46cfaea7bf
3 changed files with 2 additions and 5 deletions

View File

@ -169,7 +169,7 @@
<div class="flex border-t-2 pt-3 mt-6 align-center justify-between md:w-full">
<div>
<span class="hidden md:inline-block">Interpretation by</span>
<a href="{{url_for('user.profile',user_id=interpretation.user.id)}}" class=" text-blue-500 {% if user.is_deleted %}line-through{% endif %}">{{interpretation.user.username}}</a> on {{interpretation.created_at.strftime('%B %d, %Y')}}
<a href="{{url_for('user.profile',user_id=interpretation.user.id)}}" class=" text-blue-500 {% if interpretation.user.is_deleted %}line-through{% endif %}">{{interpretation.user.username}}</a> on {{interpretation.created_at.strftime('%B %d, %Y')}}
</div>
<div class="flex ml-auto justify-between w-24">
<span class="space-x-0.5 flex items-center">

View File

@ -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(

View File

@ -139,4 +139,3 @@ def test_profile(client):
)
assert res
assert user.is_deleted
assert user.books[0].is_deleted