diff options
author | Palaparthy Adityachandra | 2020-07-02 13:28:48 +0530 |
---|---|---|
committer | GitHub | 2020-07-02 13:28:48 +0530 |
commit | b541b3aa05bf19ed6d4d28373e186883e3c4e966 (patch) | |
tree | 2d0b95b53a60ce6830fcefe115830e89e940845a /yaksh/test_models.py | |
parent | c9e0d0df8dcb3a14017cef5ff01832a5345629db (diff) | |
parent | 46ef4a4a563b16bb96d09cb17496afb731e616ad (diff) | |
download | online_test-b541b3aa05bf19ed6d4d28373e186883e3c4e966.tar.gz online_test-b541b3aa05bf19ed6d4d28373e186883e3c4e966.tar.bz2 online_test-b541b3aa05bf19ed6d4d28373e186883e3c4e966.zip |
Merge pull request #719 from prathamesh920/hidden-testcases
Hide test cases
Diffstat (limited to 'yaksh/test_models.py')
-rw-r--r-- | yaksh/test_models.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/yaksh/test_models.py b/yaksh/test_models.py index 4e6b1ae..37baf6e 100644 --- a/yaksh/test_models.py +++ b/yaksh/test_models.py @@ -431,7 +431,8 @@ class QuestionTestCases(unittest.TestCase): self.test_case_upload_data = [{"test_case": "assert fact(3)==6", "test_case_type": "standardtestcase", "test_case_args": "", - "weight": 1.0 + "weight": 1.0, + "hidden": False }] questions_data = [{"snippet": "def fact()", "active": True, "points": 1.0, @@ -2029,7 +2030,8 @@ class TestCaseTestCases(unittest.TestCase): {'test_case': 'assert myfunc(12, 13) == 15', 'test_case_type': 'standardtestcase', 'test_case_args': "", - 'weight': 1.0 + 'weight': 1.0, + 'hidden': False }] } self.answer_data_json = json.dumps(answer_data) @@ -2363,4 +2365,4 @@ class CommentModelTestCases(unittest.TestCase): self.user1.delete() self.course.delete() self.post1.delete() - self.comment1.delete()
\ No newline at end of file + self.comment1.delete() |