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 Jan 1, 2022
1 parent bc1b8cf commit 6070509
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 6070509

Please sign in to comment.