Skip to content

Instantly share code, notes, and snippets.

@briggleman
Created August 28, 2019 12:12
Show Gist options
  • Save briggleman/65e4fec7e28d87a163e28d45012c7ece to your computer and use it in GitHub Desktop.
Save briggleman/65e4fec7e28d87a163e28d45012c7ece to your computer and use it in GitHub Desktop.
import pytest
from unittest import mock
@pytest.fixture(autouse=True)
def mock_boto():
# change to the directory where boto3 is being called
with mock.patch("reward.lib.aws.boto3") as mocked:
yield mocked
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment