gradescope / gradescope-utils

Python package for building Gradescope autograders
https://gradescope-utils.readthedocs.io/en/latest/
MIT License
33 stars 25 forks source link

Figured out how to pass parameters from settings #36

Open AndrewQuijano opened 1 year ago

AndrewQuijano commented 1 year ago

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.

AndrewQuijano commented 1 year ago

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 commented 1 year ago

@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/.