Private
Public Access
1
0

passing tests

This commit is contained in:
Sander Roosendaal
2023-02-18 19:39:53 +01:00
parent 9f871c2c8e
commit 3bc3cb1f46
3 changed files with 4 additions and 5 deletions

View File

@@ -202,11 +202,10 @@ class EmailTests(TestCase):
pass
@patch('rowers.dataprep.create_engine')
@patch('rowers.polarstuff.get_polar_notifications')
@patch('rowers.c2stuff.requests.get', side_effect=mocked_requests)
@patch('rowers.c2stuff.requests.post', side_effect=mocked_requests)
@patch('rowers.integrations.c2.requests.get', side_effect=mocked_requests)
@patch('rowers.integrations.c2.requests.post', side_effect=mocked_requests)
def test_emailprocessing(
self, mocked_sqlalchemy,mocked_polar_notifications, mock_get, mock_post):
self, mocked_sqlalchemy,mocked_get, mock_post):
out = StringIO()
call_command('processemail', stdout=out,testing=True,mailbox='workouts4')
self.assertIn('Successfully processed email attachments',out.getvalue())

Binary file not shown.