garnaat / placebo

Make boto3 calls that look real but have no effect.
Apache License 2.0
394 stars 28 forks source link

datetime comparison issue with offset-naive and offset-aware #55

Closed markfink closed 8 years ago

markfink commented 8 years ago

placebo works fine for some of my testcases. others I run into trouble during playback e.g.:

 response = client.describe_stack_events(StackName=stack_id)
            for event in response['StackEvents'][::-1]:
>               if event['EventId'] not in seen_events and event['Timestamp'] > now:
E               TypeError: can't compare offset-naive and offset-aware datetimes

any idea how to tackle this?

markfink commented 8 years ago

this was an issue in application code. I fixed it and the issue went away... sorry for the noise.