mirror of https://github.com/logos-co/open-law.git
fix tests
This commit is contained in:
parent
28fb60a240
commit
46cfaea7bf
|
@ -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">
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -139,4 +139,3 @@ def test_profile(client):
|
|||
)
|
||||
assert res
|
||||
assert user.is_deleted
|
||||
assert user.books[0].is_deleted
|
||||
|
|
Loading…
Reference in New Issue