def test_set_settings(self): set_settings('foo') s = get_settings() self.assertEqual('foo', s)
PRIMARY_STREAM_SOURCE = 'arn:partition:kinesis:testing:account:stream/resource' SECONDARY_STREAM_SOURCE = None PRIMARY_CHECKPOINT_SOURCE = 'arn:partition:dynamodb:testing:account:table/resource' SECONDARY_CHECKPOINT_SOURCE = None PRIMARY_RETRY_SOURCE = 'arn:partition:dynamodb:testing:account:table/resource' SECONDARY_RETRY_SOURCE = None PRIMARY_ENVIRONMENT_SOURCE = 'arn:partition:dynamodb:testing:account:table/resource' SECONDARY_ENVIRONMENT_SOURCE = None AWS_CHAOS = {} ENDPOINTS = { 'kinesis': { 'testing': 'invalid_endpoint' }, 'dynamodb': { 'testing': 'invalid_endpoint' }, 'elasticache': { 'testing': 'invalid_endpoint:9999' }, 'sns': { 'testing': 'invalid_endpoint' }, 'cloudwatch': { 'testing': 'invalid_endpoint' } } BOTO3_CLIENT_ADDITIONAL_KWARGS = {} set_settings(TestSettings)
def test_get_settings_imports_if_missing(self): set_settings(None) get_settings()