Skip to content

Commit 394eaa7

Browse files
celiaoclaude
andcommitted
Use lst.success instead of lst.status_message in list_create test
status_message is occasionally absent from the API response; success (boolean) is the more reliable indicator that list_create succeeded. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 5e08b75 commit 394eaa7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/test_account.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,9 @@ def test_lists_create_add_remove_clear_delete(self):
296296
'description': LIST_DESCRIPTION,
297297
'language': LIST_LANGUAGE,
298298
}
299-
status_message = SUCCESS_PERIOD
300299
lst = tmdb.Lists(0, SESSION_ID)
301300
lst.list_create(**kwargs)
302-
self.assertEqual(lst.status_message, status_message)
301+
self.assertTrue(lst.success)
303302

304303
status_code = SUCCESSFUL_UPDATE
305304
lst.add_item(media_id=LIST_ITEM_MEDIA_ID)

0 commit comments

Comments
 (0)