예제 #1
0
    def test_schedule_delete(self):
        dbservices = ScheduleDBServices()
        dbservices.openConnection()
        dbservices.createEmpSchedules()
        dbservices.insert(sch, "testuser")
        dbservices.delete("testuser", sch)

        newSch = dbservices.get("testuser")
        self.assertIsNull(newSch.getId())
예제 #2
0
    def test_connect_to_schedule_database(self):
        dbservices = ScheduleDBServices()
        connected = False
        try:
            dbservices.openConnection()
            connected = True
        except Exception as ex:
            connected = False

        dbservices.close()

        self.assertTrue(connected)