summaryrefslogtreecommitdiff
path: root/yaksh/test_models.py
AgeCommit message (Collapse)Author
2016-09-30changed test cases for models as per python 3adityacp
2016-09-23Removed the test case for regrade code question from test_models for now.prathamesh
2016-09-23for test to passprathamesh
2016-09-23need to start code server for model tests.prathamesh
While testing regrade method for code questions, code server needs to serve.
2016-09-23Merge branch 'master' of https://github.com/FOSSEE/online_test into ↵prathamesh
regrade_papers Resolved Conflicts: yaksh/models.py yaksh/test_models.py yaksh/urls.py yaksh/views.py
2016-09-23Regrade Featureprathamesh
A question can be regraded for a given quiz. Whole quiz can be regraded. Particular user paper can be regraded. Moved validate_answer from views to models. regrade method also updates the answer i.e. marks and correctness. Also, the answer paper percentage is updated.
2016-09-02refactor in test_models and updated with latest changesadityacp
2016-09-01Merge pull request #105 from adityacp/stdin_stdout_evaluatorPrabhu Ramachandran
Stdin stdout evaluators
2016-08-31rebase with latest changesadityacp
2016-08-31Merge branch 'master' of https://github.com/FOSSEE/online_test into ↵prathamesh
view_answerpaper Resolved Conflicts: yaksh/views.py
2016-08-31Added testcases for model and view.prathamesh
2016-08-30changed load and dump test casesadityacp
2016-08-30removed extract_files and read_json files from viewsadityacp
2016-08-29Views sometimes use cent percent CPU, fixedprathamesh
After correct submission(POST) of code question, same question is shown for 2 seconds with a message "Correct Output". After 2 seconds, the same correctly answered question is resubmitted(GET) to the server.Since the question is already answered, it skips the question using the skip method of answerpaper. In skip method we have used cycle itertool, which loops in a cyclic manner, never ending. So it is terminated when we get a question match in an unanswered questions list with the submitted question. But the question is already answered so we never get a match and loop runs infinitely. So used list instead of cycle. Also, after correct answer, the user is to always get first question in the answered list of question instead of next question after the answered one. So changed the completed_question method of answerpaper.
2016-08-26changed function calls in testsadityacp
2016-08-25changed testcases to test questions dumpadityacp
2016-08-12Move tests.py to test_models.py.Prabhu Ramachandran