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')
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)
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')
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='{}')
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'])
def setUpTestData(cls): create_manager_and_employee_groups() create_new_manager(cls.manager_credentials) create_new_employee(cls.emp_credentials)
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')
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)