Skip to content
Snippets Groups Projects

Resolve "Tests are not created when importing via frontend"

+ 1
10
@@ -34,14 +34,6 @@ RUSTY_HEKTOR_MAX_VER = "<6.0.0"
valid = {"yes": True, "y": True, "ye": True, "no": False, "n": False}
# the camel-case entries are here for the import via frontend functionality.
TEST_ORDER = (
'EmptyTest',
'_empty_test',
'CompileTest',
'_compile_test',
)
user_factory = GradyUserFactory()
@@ -172,8 +164,7 @@ def add_tests(submission_obj, tests):
defaults={'is_active': False}
)
for name in (name for name in TEST_ORDER if name in tests):
test_data = tests[name]
for test_data in tests:
test_obj, created = Test.objects.update_or_create(
name=test_data['name'],
submission=submission_obj,
Loading