From ceb49861279445752793477091fc53719632e61f Mon Sep 17 00:00:00 2001 From: Ana Paula Gomes Date: Thu, 7 Mar 2019 14:25:11 +0100 Subject: [PATCH] Add created_by and date_created to note creation (#138) --- closeio/contrib/testing_stub.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/closeio/contrib/testing_stub.py b/closeio/contrib/testing_stub.py index fcd0876..9078e06 100644 --- a/closeio/contrib/testing_stub.py +++ b/closeio/contrib/testing_stub.py @@ -347,6 +347,8 @@ def create_activity_note(self, **kwargs): notes = self._data('activity_notes', {}) note = kwargs note['id'] = 'acti_{}'.format(uuid.uuid4().hex) + note['created_by'] = 'user_04EJPREurd0b3KDozVFqXSRbt2uBjw3QfeYa7ZaGTwI' + note['date_created'] = datetime.now(timezone.utc) lead_id = note['lead_id'] if lead_id not in notes: