Skip to content

Commit

Permalink
Fix timeline test to avoid persisitng multiple times the same submission
Browse files Browse the repository at this point in the history
  • Loading branch information
mandrade2 committed Jul 31, 2020
1 parent 72354aa commit 4d281a9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/views/timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,5 @@ def test_timeline_view_unit_with_creation(client, request_users, system, admin,
unit = Unit.objects.create(
state=TRANSLATED, source_f="Foo", target_f="Bar", store=store0, index=index
)
# save and get the unit to deal with mysql's microsecond issues
unit.save()
unit = Unit.objects.get(pk=unit.pk)
unit.add_initial_submission(system)
_timeline_test(client, request_users, unit)

0 comments on commit 4d281a9

Please sign in to comment.