Exemplo n.º 1
0
 def setUp(self):
     di = DjangoModelInterface()
     self.environment = Environment(di, DEBUG=True)
     self.environment.database.create_account("root", "root",
                                              "administrator")
     self.environment.database.create_course("361", "SoftwareEngineering")
     self.environment.database.create_lab("361", "801")
     self.environment.database.create_account("apoorv", "password", "TA")
Exemplo n.º 2
0
    def __init__(self):
        self.environ = Environment.Environment(DjangoModelInterface(),
                                               DEBUG=True)
        self.ui = UI.UI(self.environ)

        acct = Account.objects.filter(
            name=self.environ.database.get_logged_in()).first()
        if acct is not None:
            self.environ.user = TaCLI.User.User(acct.name, acct.role)
Exemplo n.º 3
0
    def setUp(self):
        di = DjangoModelInterface()
        self.environment = Environment(di, DEBUG=True)
        self.environment.database.create_account("root", "root", "supervisor")

        self.environment.database.create_course("361", "SoftwareEngineering")

        self.environment.database.create_account("jayson", "password",
                                                 "instructor")

        self.environment.database.set_course_assignment("361", "jayson")
Exemplo n.º 4
0
    def setUp(self):
        self.di = DjangoModelInterface()

        self.di.create_account("Supervisor", "SupervisorPassword", "supervisor")
        self.di.create_account("Administrator", "AdministratorPassword", "administrator")
        self.di.create_account("Instructor", "InstructorPassword", "instructor")
        self.di.create_account("TA", "TAPassword", "TA")

        self.di.create_course("361", "CompSci361")
        self.di.create_lab("361", "801")

        self.environment = Environment.Environment(self.di, DEBUG=True)
        self.ui = UI.UI(self.environment)
Exemplo n.º 5
0
    def setUp(self):
        """
            create dummy account for each of the types of users:
            supervisor, administrator, instructor and TA and then
            log them in for their respected tests
        """
        self.di = DjangoModelInterface()

        self.di.create_account("Supervisor", "SupervisorPassword",
                               "supervisor")
        self.di.create_account("Administrator", "AdministratorPassword",
                               "administrator")
        self.di.create_account("Instructor", "InstructorPassword",
                               "instructor")
        self.di.create_account("TA", "TAPassword", "TA")

        self.di.create_course("361", "CompSci361")
        self.di.create_lab("361", "801")

        self.environment = Environment.Environment(self.di, DEBUG=True)
        self.ui = UI.UI(self.environment)
        """
Exemplo n.º 6
0
 def setUp(self):
     di = DjangoModelInterface()
     self.environment = Environment(di, DEBUG=True)
 def setUp(self):
     self.di = DjangoModelInterface()
Exemplo n.º 8
0
 def setUp(self):
     self.di = DjangoModelInterface()
     self.environment = Environment.Environment(self.di, DEBUG=True)
     self.ui = UI.UI(self.environment)
Exemplo n.º 9
0
 def setUp(self):
     di = DjangoModelInterface()
     self.environment = Environment(di, DEBUG=True)
     self.environment.database.create_account("root", "root",
                                              "administrator")
Exemplo n.º 10
0
 def __init__(self):
     self.environ = Environment.Environment(DjangoModelInterface(),
                                            DEBUG=True)
     self.ui = UI.UI(self.environ)
Exemplo n.º 11
0
 def setUp(self):
     di = DjangoModelInterface()
     self.environment = Environment(di, DEBUG=True)
     self.environment.user = User("root", "administrator")