We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I need some help trying to patch boto3. I've been trying the following:
snippet:
@unittest.mock.patch.object(boto3, 'resource', new=localstack_client.session.resource) @unittest.mock.patch.object(boto3, 'client', new=localstack_client.session.client) class MyTestCase(unittest.TestCase): @classmethod def setUp(cls): try: infra.start_infra(asynchronous=True) except Exception as e: infra.stop_infra() raise e @classmethod def tearDownClass(cls): infra.stop_infra() def test_ls(self): sqs = boto3.client('sqs') print(sqs.list_queues())
run:
nosetests -s
output:
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "http://localhost:4576/"
The text was updated successfully, but these errors were encountered:
PEBKAC. I've updated the issue snippet for any wayward travelers.
Sorry, something went wrong.
@jacobisaliveandwell Do you remember how this was solved?
No branches or pull requests
I need some help trying to patch boto3. I've been trying the following:
snippet:
run:
output:
The text was updated successfully, but these errors were encountered: