From 0580f99fecc0bb495beb5706e18246834174710b Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Tue, 21 Apr 2015 18:15:10 +0530 Subject: Add code checker registration class --- testapp/exam/evaluate_bash.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'testapp/exam/evaluate_bash.py') diff --git a/testapp/exam/evaluate_bash.py b/testapp/exam/evaluate_bash.py index 4e79053..57c89ae 100644 --- a/testapp/exam/evaluate_bash.py +++ b/testapp/exam/evaluate_bash.py @@ -8,6 +8,8 @@ import importlib # local imports from code_server import TestCode +from registry import registry + class EvaluateBash(TestCode): """Tests the Bash code obtained from Code Server""" @@ -105,4 +107,6 @@ class EvaluateBash(TestCode): else: err = "Error:expected %s, got %s" % (inst_stdout+inst_stderr, stdnt_stdout+stdnt_stderr) - return False, err \ No newline at end of file + return False, err + +registry.register('bash', evaluate_bash, EvaluateBash) \ No newline at end of file -- cgit