def setUp(self):
		create_engine('sqlite:///:memory:?check_same_thread=False', echo=True)
		create_schema()

		session = Session()
		self.user = User("username", "password", "fullname", "*****@*****.**", "5555555555", "5555555556")
		session.add(self.user)
		session.commit()
Exemple #2
0
    def setUp(self):
        create_engine('sqlite:///:memory:?check_same_thread=False', echo=True)
        create_schema()

        session = Session()
        self.user = User("username", "password", "fullname", "*****@*****.**",
                         "5555555555", "5555555556")
        session.add(self.user)
        session.commit()
	def setUp(self):
		create_engine('sqlite:///:memory:?check_same_thread=False', echo=True)
		create_schema()
		time = datetime.now()
		self.timeStr = time.strftime('%Y-%m-%d %H:%M:%S')
		
		session = Session()
		self.appointment = Appointment(1, 'Test Appointment 1', self.timeStr, self.timeStr)
		session.add(self.appointment)
		session.commit()
Exemple #4
0
    def setUp(self):
        create_engine('sqlite:///:memory:?check_same_thread=False', echo=True)
        create_schema()
        time = datetime.now()
        self.timeStr = time.strftime('%Y-%m-%d %H:%M:%S')

        session = Session()
        self.appointment = Appointment(1, 'Test Appointment 1', self.timeStr,
                                       self.timeStr)
        session.add(self.appointment)
        session.commit()