-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tests for the assignments
app
#40
Conversation
9b4f1eb
to
55dc358
Compare
I didn't complete every single view in assignments, but I hit most and I think I'm happy with where it is right now. |
90a5932
to
348949b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is amazing - great work, thank you so much!
f2999ca
to
348949b
Compare
4109c55
to
e50df1a
Compare
c03ce92
to
090d035
Compare
348949b
to
34b3d21
Compare
bb98a19
to
7f718d1
Compare
ba2b32c
to
ca353a6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will test/merge after #50.
For an example of the error, run `test_incorrect_files` from #40 locally
@JasonGrace2282 could you rebase this PR so I can test it with the changes from #50? |
Also uses pytest-xdist to run tests in parallel
ca353a6
to
554a5a7
Compare
Done @krishnans2006 :) |
Improves speed and fixes issues with sandboxing wrappers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To recap our conversation, any tests that edit the same file can have edge cases, so you'll need to account for those. For example, test_grader_view
and test_download_grader
both edit media/assignment-1/grader.py
, so one of them can fail if they're timed poorly.
Goal
Add basic tests for every view in
tin/apps/assignments/views.py
(see #41 )Feel free to help out ;)
Bonus
I added
pytest-xdist
to run tests in parallel (nobody likes a slow CI)Progress