diff options
author | ankitjavalkar | 2021-01-16 23:42:30 +0530 |
---|---|---|
committer | ankitjavalkar | 2021-01-16 23:42:30 +0530 |
commit | 3966ae20fc68041721f97c45ff92102ed5729aee (patch) | |
tree | 979df38d5ad8f8a830adf63a546d21d523d85d6f | |
parent | 7decc133e0f16f355f4e158fc3208bf7c5da3ee9 (diff) | |
download | online_test-3966ae20fc68041721f97c45ff92102ed5729aee.tar.gz online_test-3966ae20fc68041721f97c45ff92102ed5729aee.tar.bz2 online_test-3966ae20fc68041721f97c45ff92102ed5729aee.zip |
Fix failing test case
-rw-r--r-- | upload/utils.py | 2 | ||||
-rw-r--r-- | yaksh/models.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/upload/utils.py b/upload/utils.py index 3609f09..cae9f1f 100644 --- a/upload/utils.py +++ b/upload/utils.py @@ -255,7 +255,7 @@ def create_header(data, dtype): "type": dtype, "data": data } - yaml=YAML() + yaml=ruamel.yaml.YAML() yaml.default_flow_style = False io_obj = io.StringIO() diff --git a/yaksh/models.py b/yaksh/models.py index bdac927..00bca5b 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -2940,7 +2940,7 @@ class TOCManager(models.Manager): else: que = Question.objects.create(**content) for test_case in test_cases: - test_case_type = test_case.pop('type') + test_case_type = test_case.pop('test_case_type') model_class = get_model_class(test_case_type) model_class.objects.get_or_create( question=que, **test_case, type=test_case_type |