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

« back to all changes in this revision

Viewing changes to ivle/webapp/tutorial/test/TestFramework.py

  • Committer: Nick Chadwick
  • Date: 2009-02-18 12:50:31 UTC
  • mto: (1099.1.180 new-dispatch)
  • mto: This revision was merged to the branch mainline in revision 1100.
  • Revision ID: chadnickbok@gmail.com-20090218125031-0gwxxfljq1iqipgz
Working on putting worksheets into the database.

This will lead to a nice editor for each worksheet.

This commit also introduces my changes linking problem attempts to
worksheets AND exercises, not just exercises.

Show diffs side-by-side

added added

removed removed

Lines of Context:
341
341
        self._parts = []
342
342
        self._allowed_exceptions = set()
343
343
        
 
344
        args = {}
344
345
        for var in suite.variables:
345
346
            if var.var_type == "file":
346
347
                self.add_file(var)
347
348
            elif var.var_type == "var":
348
349
                self.add_variable(var)
349
350
            elif var.var_type == "arg":
350
 
                self.add_arg(var)
 
351
                args[var.arg_no] = var
351
352
            elif var.var_type == "exception":
352
353
                self.add_exception(var)
353
354
        
 
355
        for i in xrange(len(args)):
 
356
            self.add_arg(args[i])
354
357
        for test_case in suite.test_cases:
355
358
            self.add_part(TestCasePart(test_case))
356
359