moto/tests/__init__.py

25 lines
774 B
Python
Raw Normal View History

2017-02-16 03:35:45 +00:00
import logging
import os
2019-10-31 15:44:26 +00:00
from moto.core.config import default_user_config
2017-02-16 03:35:45 +00:00
# Disable extra logging for tests
2019-10-31 15:44:26 +00:00
logging.getLogger("boto").setLevel(logging.CRITICAL)
logging.getLogger("boto3").setLevel(logging.CRITICAL)
logging.getLogger("botocore").setLevel(logging.CRITICAL)
# Sample pre-loaded Image Ids for use with tests.
# (Source: moto/ec2/resources/amis.json)
EXAMPLE_AMI_ID = "ami-12c6146b"
EXAMPLE_AMI_ID2 = "ami-03cf127a"
2021-09-25 11:13:07 +00:00
EXAMPLE_AMI_PARAVIRTUAL = "ami-fa7cdd89"
EXAMPLE_AMI_WINDOWS = "ami-f4cf1d8d"
2022-08-13 09:49:43 +00:00
DEFAULT_ACCOUNT_ID = "123456789012"
# For the majority of tests we don't need the default AMI's
os.environ["MOTO_EC2_LOAD_DEFAULT_AMIS"] = "false"
# Don't reset boto3 Session, as it's unnecessarily slow
default_user_config["core"]["reset_boto3_session"] = False