def setup_method(self, test_method): print('SETUP {}'.format(test_method.__name__)) timestamp = str(int(time())) self.note_id = 'note-{}-{}'.format(timestamp, test_method.__name__) self.image_url = '{}.{}'.format(timestamp, test_method.__name__) self.note_obj = samples.create_note(self.note_id, PROJECT_ID)
def setup_method(self, test_method): print('SETUP {}'.format(test_method.__name__)) self.note_id = 'note-{}'.format(uuid.uuid4()) self.image_url = '{}.{}'.format(uuid.uuid4(), test_method.__name__) self.note_obj = samples.create_note(self.note_id, PROJECT_ID)