Where is the type error

self = <tests.test_views.PinterestTestUtil object at 0x3e8126cb5da0>
message = ‘Great Work!!! Completed module 2 @ 2020-02-03 11:53:13.663681 #Pinterest #Module2
image_path = ‘/ujjwalcode-ME_QEATS_REVIEW_MP-b850cad8-467b-11ea-b2f2-5dc518e197d9/ujjwalcode-ME_QEATS_REVIEW_MP/tests/sneakpeak.jpg’

def check_whether_message_is_published(self, message, image_path):

    user_pins = self.get_all_pins_from_board()

    if 'data' not in user_pins:
        print('=' * 100)
        print('\n\n\nPinterest API: Looks you have hit the per hour API limit\n\n\n')
        print('=' * 100)
        return False
  for one_pin in user_pins['data']:

E TypeError: ‘NoneType’ object is not iterable

tests/test_views.py:85: TypeError

It means that the data variable is passing None (which is type NoneType ), its equivalent for nothing. So it can’t be iterable as a list, as you are trying to do.
Refer this for additional information : https://stackoverflow.com/questions/3887381/typeerror-nonetype-object-is-not-iterable-in-python