示例#1
0
 def setUp(self):
     self.manager_credentials = {
         'username': '******',
         'password': '******'
     }
     create_new_manager(self.manager_credentials)
     set_address_to_business(username=self.manager_credentials['username'],
                             address='Tel-Aviv')
示例#2
0
    def setUpTestData(cls):
        create_manager_and_employee_groups()

        cls.broadcast_msg = {
            'subject': 'broadcast_subject',
            'text': 'broadcast_text'
        }
        create_new_manager(cls.manager_credentials)
        create_new_employee(cls.emp_credentials)
示例#3
0
 def setUpTestData(cls):
     create_new_manager({'username': '******', 'password': '******'})
     cls.emp = create_new_employee({
         'username': '******',
         'password': '******'
     })
     cls.next_week_num = get_next_week_num()
     cls.slot = ShiftSlot.objects.create(
         business=Business.objects.get(business_name='dummy'),
         week=cls.next_week_num,
         day='3',
         start_hour='12:00:00',
         end_hour='13:00:00')
示例#4
0
 def setUpTestData(cls):
     create_new_manager({'username': '******', 'password': '******'})
     cls.test_business = Business.objects.create(business_name='testBiz')
     create_new_employee(cls.first_emp_credentials)
     create_new_employee(cls.second_emp_credentials)
     cls.first_slot = ShiftSlot.objects.create(business=cls.test_business,
                                               day='1',
                                               start_hour='12:00:00',
                                               end_hour='13:00:00',
                                               constraints='{}')
     cls.second_slot = ShiftSlot.objects.create(business=cls.test_business,
                                                day='1',
                                                start_hour='16:00:00',
                                                end_hour='18:00:00',
                                                constraints='{}')
示例#5
0
 def setUpTestData(cls):
     create_new_manager(cls.manager_credentials)
     add_fields_to_slot(cls.dummy_slot_data)
     cls.manager_business = get_business_of_username(
         username=cls.manager_credentials['username'])
示例#6
0
 def setUpTestData(cls):
     create_manager_and_employee_groups()
     create_new_manager(cls.manager_credentials)
     create_new_employee(cls.emp_credentials)
示例#7
0
 def setUpTestData(cls):
     from django.core.cache import cache
     create_manager_and_employee_groups()
     create_new_manager(cls.manager_credentials)
     create_multiple_employees(7)
     cache.delete('dummy-leaders')
示例#8
0
 def setUpTestData(cls):
     create_manager_and_employee_groups()
     create_new_manager(cls.manager_credentials)
     create_new_employee(cls.emp_credentials)
     add_fields_to_slot(cls.dummy_slot)