Skip to content

Commit

Permalink
Add logging to delete_pin
Browse files Browse the repository at this point in the history
  • Loading branch information
gilderlane committed Oct 5, 2023
1 parent b908ee8 commit 382e1a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions integration_tests/utils/organic_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Provide helper and utility functions for Organic Endpoints Integration Testing
"""
import random
import logging

from pinterest.client import PinterestSDKClient

Expand All @@ -10,6 +11,7 @@

from integration_tests.config import DEFAULT_BOARD_ID, DEFAULT_PIN_ID

log = logging.getLogger(__name__)

def _merge_default_params_with_params(default_params, params):
if not params:
Expand Down Expand Up @@ -81,3 +83,5 @@ def create_new_pin(self, **kwargs):
def delete_pin(self, pin_id):
if pin_id != DEFAULT_PIN_ID: # Make sure default pin is not being deleted
return Pin.delete(pin_id=pin_id, client=self.test_client)
else:
log.warning(f"Default pin {DEFAULT_PIN_ID} was attempted to be deleted.")

0 comments on commit 382e1a4

Please sign in to comment.