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

« back to all changes in this revision

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

This commit changes the tutorial service, which now almost exclusively
uses the database to store its data.

Whilst the modifications to tutorial are not yet complete, this commit
should stabilise the database model.

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