Unverified Commit 4b1d00b9 authored by Peter Stanko's avatar Peter Stanko
Browse files

Test for the results

parent 0f276bfb
......@@ -22,3 +22,12 @@ def test_submission_sources_are_available(client, mocked_submission):
assert response.status_code == 200
assert response.data
assert response.data.decode('utf-8') == expected('src/main.c')
def test_submission_results_are_available(client, mocked_submission):
s = mocked_submission
response = utils.make_request(client, f'/submissions/{s.id}/files/results?path=student.json')
assert response.status_code == 200
assert response.data
assert response.data.decode('utf-8') == expected('student.json')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment