Skip to content
Snippets Groups Projects
Commit 6e391cd7 authored by robinwilliam.hundt's avatar robinwilliam.hundt
Browse files

Bumped Min. req. Hektor version of import to 4.0.0

parent 6df62ce9
No related branches found
No related tags found
1 merge request!192Resolve "Provide import functionality via frontend for reviewers"
......@@ -6,7 +6,7 @@ from util.factories import GradyUserFactory
test_data = {
"meta": {
"version": "3.0.0"
"version": "4.0.0"
},
"module": {
"module_reference": "test",
......
{
"meta": {
"version": "3.0.0"
"version": "4.0.0"
},
"module": {
"module_reference": "B.Inf.1801",
......
......@@ -18,6 +18,7 @@ def create_browser() -> webdriver.Firefox:
options = Options()
options.headless = bool(os.environ.get('HEADLESS_TESTS', False))
options.set_capability('unhandledPromptBehavior', 'accept')
options.set_capability('strictFileInteractability', False)
profile = FirefoxProfile()
profile.set_preference("dom.disable_beforeunload", True)
profile.set_preference("browser.download.folderList", 2)
......
......@@ -29,8 +29,8 @@ PASSWORDS = '.importer_passwords'
YES = 'Y/n'
NO = 'y/N'
RUSTY_HEKTOR_MIN_VER = ">=3.0.0"
RUSTY_HEKTOR_MAX_VER = "<4.0.0"
RUSTY_HEKTOR_MIN_VER = ">=4.0.0"
RUSTY_HEKTOR_MAX_VER = "<5.0.0"
valid = {"yes": True, "y": True, "ye": True, "no": False, "n": False}
......@@ -158,7 +158,7 @@ def load_reviewers():
store_pw=True)
def add_submission(student_obj, code, tests, type=None):
def add_submission(student_obj, code, tests, type=None, display_code=None):
submission_type_obj = SubmissionType.objects.get(name=type)
submission_obj, _ = Submission.objects.update_or_create(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment