예제 #1
0
 def setUp(self):
     tfi = TextFileInterface(relative_directory="TestDB/")
     self.environment = Environment(tfi, DEBUG=True)
     self.environment.database.clear_database()
     self.environment.database.create_account("root", "root",
                                              "administrator")
     self.environment.database.create_course("361", "SoftwareEngineering")
예제 #2
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")
예제 #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")
예제 #4
0
    def setUp(self):
        tfi = TextFileInterface(relative_directory="TestDB/")
        self.environment = Environment(tfi, DEBUG=True)
        self.environment.database.clear_database()
        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")
예제 #5
0
    def setUp(self):
        tfi = TextFileInterface(relative_directory="TestDB/")
        self.environment = Environment(tfi, DEBUG=True)
        self.environment.database.clear_database()
        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_lab("361", "802")
        self.environment.database.create_lab("361", "803")

        self.environment.database.create_account("apoorv", "password", "TA")

        self.environment.database.set_lab_assignment("361", "802", "apoorv")
예제 #6
0
 def setUp(self):
     di = DjangoModelInterface()
     self.environment = Environment(di, DEBUG=True)
예제 #7
0
 def setUp(self):
     tfi = TextFileInterface(relative_directory="TestDB/")
     self.environment = Environment(tfi)
     self.environment.database.clear_database()
예제 #8
0
 def setUp(self):
     di = DjangoModelInterface()
     self.environment = Environment(di, DEBUG=True)
     self.environment.database.create_account("root", "root",
                                              "administrator")
예제 #9
0
 def setUp(self):
     tfi = TextFileInterface(relative_directory="TestDB/")
     self.environment = Environment(tfi)
     self.environment.database.clear_database()
     self.environment.database.create_account("root", "root", "administrator")
예제 #10
0
 def setUp(self):
     di = DjangoModelInterface()
     self.environment = Environment(di, DEBUG=True)
     self.environment.user = User("root", "administrator")