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")
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)
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")
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)
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) """
def setUp(self): di = DjangoModelInterface() self.environment = Environment(di, DEBUG=True)
def setUp(self): self.di = DjangoModelInterface()
def setUp(self): self.di = DjangoModelInterface() self.environment = Environment.Environment(self.di, DEBUG=True) self.ui = UI.UI(self.environment)
def setUp(self): di = DjangoModelInterface() self.environment = Environment(di, DEBUG=True) self.environment.database.create_account("root", "root", "administrator")
def __init__(self): self.environ = Environment.Environment(DjangoModelInterface(), DEBUG=True) self.ui = UI.UI(self.environ)
def setUp(self): di = DjangoModelInterface() self.environment = Environment(di, DEBUG=True) self.environment.user = User("root", "administrator")