From 590dc4a5e99fc1f72287d13e5ce25d1506b4e518 Mon Sep 17 00:00:00 2001 From: maheshgudi Date: Fri, 13 Jul 2018 16:48:21 +0530 Subject: Fix unit and selenium tests for simple questions --- yaksh/live_server_tests/selenium_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'yaksh/live_server_tests/selenium_test.py') diff --git a/yaksh/live_server_tests/selenium_test.py b/yaksh/live_server_tests/selenium_test.py index 6351f9e..a067f22 100644 --- a/yaksh/live_server_tests/selenium_test.py +++ b/yaksh/live_server_tests/selenium_test.py @@ -118,7 +118,7 @@ class SeleniumTest(): # Correct Answer loop_count = 1 - answer = '\"#!/bin/bash\\ncat $1 | cut -d: -f2 | paste -d: $3 - $2\"' + answer = '\"#!/bin/bash\\necho "Hello, World!"\"' self.submit_answer(question_label, answer, loop_count) def open_quiz(self): @@ -135,9 +135,9 @@ class SeleniumTest(): ) start_exam_elem.click() - self.test_c_question(question_label=7) - self.test_python_question(question_label=5) - self.test_bash_question(question_label=4) + self.test_c_question(question_label=6) + self.test_python_question(question_label=4) + self.test_bash_question(question_label=10) def quit_quiz(self): quit_link_elem = WebDriverWait(self.driver, 5).until( -- cgit