Esempio n. 1
0
 def test_case_2_list_tasks(self):
     self.data['text'] = '<@UPMT8NZJS> list tasks'
     self.data['user'] = '******'
     # data['channel'] = 'xxxx'
     r = processMessage(self.data, True)
     response = r.response[0].decode('utf-8')
     self.assertIn('No Active Tasks exist!', response)
Esempio n. 2
0
 def test_case_1_list_tasks(self):
     self.data['text'] = '<@UPMT8NZJS> list tasks'
     self.data['user'] = '******'
     # data['channel'] = 'xxxx'
     r = processMessage(self.data, True)
     response = r.response[0].decode('utf-8')
     self.assertIn('Project', response)
Esempio n. 3
0
 def test_case_2_describe_commands(self):
     # data = {}
     # data['type'] = 'message'
     self.data['text'] = 'describe commands'
     self.data['user'] = '******'
     # data['channel'] = 'xxxx'
     r = processMessage(self.data, True)
     response = r.response[0].decode('utf-8')
     self.assertEqual('Invalid command format', response)
Esempio n. 4
0
 def test_case_1_describe_commands(self):
     # data = {}
     # data['type'] = 'message'
     self.data['text'] = '<@UPMT8NZJS> describe commands'
     self.data['user'] = '******'
     # data['channel'] = 'xxxx'
     r = processMessage(self.data, True)
     response = r.response[0].decode('utf-8')
     self.assertIn('Command', response)
Esempio n. 5
0
 def test_case_4_create_task(self):
     self.data['text'] = 'create task SF task sample_task sample_task_description 6'
     self.data['user'] = '******'
     r = processMessage(self.data, True)
     response = r.response[0].decode('utf-8')
     self.assertEqual('Invalid command format', response)
Esempio n. 6
0
 def test_case_3_create_task(self):
     self.data['text'] = '<@UPMT8NZJS> create task SF task sample_task sample_task_description 6 8'
     self.data['user'] = '******'
     r = processMessage(self.data, True)
     response = r.response[0].decode('utf-8')
     self.assertIn('Too many', response)
Esempio n. 7
0
 def test_case_2_create_task(self):
     self.data['text'] = '<@UPMT8NZJS> create task SF issue sample_task sample_task_description'
     self.data['user'] = '******'
     r = processMessage(self.data, True)
     response = r.response[0].decode('utf-8')
     self.assertIn('Insufficient', response)
Esempio n. 8
0
 def test_case_3_list_tasks(self):
     self.data['text'] = 'list tasks'
     self.data['user'] = '******'
     r = processMessage(self.data, True)
     response = r.response[0].decode('utf-8')
     self.assertEqual('Invalid command format', response)