okpy / ok-client

A Python client for the OK autograding system

Home Page:https://okpy.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Files should be submitted even if importing fails

albertkx opened this issue · comments

Some students have run into issues where they have top-level syntax errors, i.e. indentation issues, that prevent their assignment file from being imported. This also prevents ok client from submitting the file.

image

We should have ok client submit the assignment file to okpy even if top-level syntax errors cause local testing to error, so we have a submission which we can regrade.

Will look into this

The issue is due to how the client imports all dependencies listed in the config.ok file to build the Assignments object, then errors since the test file cannot be loaded as a module. I will look into writing it so the code only loads the tests as the doctests protocol is run so other protocols (namely, backup) can still run.