示例#1
0
    def setUp(self):
        super(ItineraryAddPartnerTestCase, self).setUp()

        self.test_driver = Driver(email='*****@*****.**')
        Driver.insert(self.test_driver)

        secret_key = self.app.config['SECRET_KEY']
        self.test_driver_token = self.test_driver.generate_token(secret_key)

        self.test_itinerary = Itinerary(id='1', name='test_itinerary')
        Itinerary.insert(self.test_itinerary)
示例#2
0
    def setUp(self):
        super(ItineraryGetDriverItineraries, self).setUp()

        self.test_driver = Driver(email='*****@*****.**')
        Driver.insert(self.test_driver)

        secret_key = self.app.config['SECRET_KEY']
        self.test_driver_token = self.test_driver.generate_token(secret_key)

        self.test_itinerary = Itinerary(id='1', name='test_itinerary', owner='*****@*****.**',
                                        timestart='12:00', endtime='13:00', weekdays='Seg')
        Itinerary.insert(self.test_itinerary)
示例#3
0
    def setUp(self):
        super(DriverAuthViewTestCase, self).setUp()

        self.user_driver = Driver(name='Test', email='*****@*****.**')
        self.user_driver.set_password('secret123')
        Driver.insert(self.user_driver)
示例#4
0
    def setUp(self):
        self.test_driver = Driver(email='*****@*****.**')
        Driver.insert(self.test_driver)

        secret_key = self.app.config['SECRET_KEY']
        self.test_driver_token = self.test_driver.generate_token(secret_key)