do not send an auto reply to 'noreply*' addresses

This commit is contained in:
j3d1 2024-01-12 20:58:37 +01:00
parent 1804939407
commit c79b3185e5
3 changed files with 38 additions and 9 deletions

View file

@ -137,12 +137,11 @@ class IssueApiTest(TestCase):
self.assertEqual('test', response.json()[1]['timeline'][1]['subject'])
self.assertEqual('test', response.json()[1]['timeline'][1]['body'])
self.assertEqual(mail1.timestamp.strftime('%Y-%m-%dT%H:%M:%S.%fZ'),
response.json()[1]['timeline'][1]['timestamp'])
response.json()[1]['timeline'][1]['timestamp'])
self.assertEqual('pending_new', response.json()[2]['timeline'][0]['state'])
self.assertEqual('test', response.json()[2]['timeline'][1]['comment'])
self.assertEqual(comment.timestamp.strftime('%Y-%m-%dT%H:%M:%S.%fZ'),
response.json()[2]['timeline'][1]['timestamp'])
response.json()[2]['timeline'][1]['timestamp'])
def test_manual_creation(self):
response = self.client.post('/api/2/tickets/manual/',