Figured out how to pass parameters from settings#36
Open
AndrewQuijano wants to merge 7 commits intogradescope:masterfrom
Open
Figured out how to pass parameters from settings#36AndrewQuijano wants to merge 7 commits intogradescope:masterfrom
AndrewQuijano wants to merge 7 commits intogradescope:masterfrom
Conversation
…jango-nose runner for Gradescope Runner
…ss parameters from settings.py to customize the autograder. I should note you can pass a file descriptor no problem in settings.py, however I am unsure where you would close it. Regardless, I will leave that for a later time as I am assuming instructors would either stick the the default or would be aware of open file descriptors
Contributor
Author
|
Actually, with some more poking around in settings.py setting fd = open('file.json', 'w') and passing that to gradescope parameters, I am getting no warning from either testing or running the server. |
ibrahima
approved these changes
Jul 6, 2023
Contributor
|
@AndrewQuijano thanks for your contribution! Sorry for the delay in getting this reviewed. To be honest, I think it probably make more sense to make this its own pip package with its own repository so that updates don't have to go through our team. I'm happy to leave it here for now but I don't think it makes sense in the long term. At that point we could link to it from https://gradescope-autograders.readthedocs.io/en/latest/resources/. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello,
I figured out how to pass parameters to the JSONTestRunner from settings.py file in Django. I was able to test it locally with no issues.
I am wondering, when would anyone else be able to download these updates? Furthermore, I figure this could be useful for anyone teaching courses on either developing Django applications or in my case, use a buggy Django implementation for a CTF.