Skip to content

Commit

Permalink
ADD generate diff when seeding
Browse files Browse the repository at this point in the history
  • Loading branch information
PIG208 committed Dec 31, 2021
1 parent 48924f3 commit e4e0b9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/anubis/utils/testing/seed.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ def init_submissions(submissions):

test_result.message = "Test passed" if test_passed else "Test failed"
test_result.stdout = "blah blah blah test output"
test_result.diff = "--- \n+++ \n@@ -1,3 +1,3 @@\n a\n-c\n+b\n d" if not test_passed else ""


@with_context
Expand Down

0 comments on commit e4e0b9d

Please sign in to comment.