Skip to content

Commit 0079944

Browse files
add some missing api public method needed by the Jira Bridge tests and fix some wrong data type (#332)
1 parent 4b8f427 commit 0079944

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

shotgun_api3/lib/mockgun/mockgun.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,12 @@ def upload(self, entity_type, entity_id, path, field_name=None, display_name=Non
425425
def upload_thumbnail(self, entity_type, entity_id, path, **kwargs):
426426
pass
427427

428+
def add_user_agent(self, agent):
429+
pass
430+
431+
def set_session_uuid(self, session_uuid):
432+
pass
433+
428434
###################################################################################################
429435
# internal methods and members
430436

@@ -497,8 +503,9 @@ def _validate_entity_data(self, entity_type, data):
497503
"text": six.string_types,
498504
"serializable": dict,
499505
"entity_type": six.string_types,
500-
"date": datetime.date,
506+
"date": six.string_types,
501507
"date_time": datetime.datetime,
508+
"duration": int,
502509
"list": six.string_types,
503510
"status_list": six.string_types,
504511
"url": dict}[sg_type]

0 commit comments

Comments
 (0)