Exemplo 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)
Exemplo 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)
Exemplo 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)
Exemplo 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)
Exemplo 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)
Exemplo 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)
Exemplo 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)
Exemplo 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)