~azzar1/unity/add-show-desktop-key

512 by stevenbird
Renaming of problems to exercises (initial commit).
1
# IVLE - Informatics Virtual Learning Environment
1099.1.141 by Nick Chadwick
Updated the exercises to be loaded from the database, not a local file.
2
# Copyright (C) 2007-2009 The University of Melbourne
512 by stevenbird
Renaming of problems to exercises (initial commit).
3
#
4
# This program is free software; you can redistribute it and/or modify
5
# it under the terms of the GNU General Public License as published by
6
# the Free Software Foundation; either version 2 of the License, or
7
# (at your option) any later version.
8
#
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
# GNU General Public License for more details.
13
#
14
# You should have received a copy of the GNU General Public License
15
# along with this program; if not, write to the Free Software
16
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17
513 by stevenbird
test/test_framework/*, exercises/sample/*
18
# Module: parse_exercise
512 by stevenbird
Renaming of problems to exercises (initial commit).
19
# Author: Dilshan Angampitiya
513 by stevenbird
test/test_framework/*, exercises/sample/*
20
#         Steven Bird (revisions)
1099.1.141 by Nick Chadwick
Updated the exercises to be loaded from the database, not a local file.
21
22
"""
23
This file was hacked apart by Nick
24
"""
25
512 by stevenbird
Renaming of problems to exercises (initial commit).
26
from TestFramework import *
27
1099.1.141 by Nick Chadwick
Updated the exercises to be loaded from the database, not a local file.
28
def parse_exercise_file(exercise, console):
29
    """ Parse an xml exercise file and return a testsuite for that exercise """
30
31
    # Generate the TestSuite for the given exercise
1099.1.114 by Nick Chadwick
Modified the database so that exercises are now stored in the database, rather
32
    return TestSuite(exercise, console)