Skip to content

Commit db9d760

Browse files
author
KP
committed
additional tests for share_thumbnail()
Ensure errors are raised when missing required params or providing conflicting params
1 parent e31f648 commit db9d760

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_api.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,12 @@ def test_share_thumbnail(self):
323323
self.assertEqual(response_version_thumbnail.get('image'),
324324
response_asset_thumbnail.get('image'))
325325

326+
# raise errors when missing required params or providing conflicting ones
327+
self.assertRaises(shotgun_api3.ShotgunError, self.sg.share_thumbnail,
328+
[self.shot, self.asset], path, self.version)
329+
self.assertRaises(shotgun_api3.ShotgunError, self.sg.share_thumbnail,
330+
[self.shot, self.asset])
331+
326332
def test_deprecated_functions(self):
327333
"""Deprecated functions raise errors"""
328334
self.assertRaises(shotgun_api3.ShotgunError, self.sg.schema, "foo")

0 commit comments

Comments
 (0)