rename backends
This commit is contained in:
parent
b5c9fbb4f0
commit
f8633cbab7
@ -4,7 +4,7 @@ from moto.core import BaseBackend
|
|||||||
from .utils import random_instance_id, random_reservation_id
|
from .utils import random_instance_id, random_reservation_id
|
||||||
|
|
||||||
|
|
||||||
class MockEC2(BaseBackend):
|
class EC2Backend(BaseBackend):
|
||||||
base_url = "https://ec2.us-east-1.amazonaws.com"
|
base_url = "https://ec2.us-east-1.amazonaws.com"
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@ -41,4 +41,4 @@ class MockEC2(BaseBackend):
|
|||||||
return self.reservations.values()
|
return self.reservations.values()
|
||||||
|
|
||||||
|
|
||||||
ec2_backend = MockEC2()
|
ec2_backend = EC2Backend()
|
@ -22,7 +22,7 @@ class FakeBucket(object):
|
|||||||
self.keys = []
|
self.keys = []
|
||||||
|
|
||||||
|
|
||||||
class MockS3(BaseBackend):
|
class S3Backend(BaseBackend):
|
||||||
base_url = "https://(.+).s3.amazonaws.com"
|
base_url = "https://(.+).s3.amazonaws.com"
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@ -54,4 +54,4 @@ class MockS3(BaseBackend):
|
|||||||
return found_key
|
return found_key
|
||||||
|
|
||||||
|
|
||||||
s3_backend = MockS3()
|
s3_backend = S3Backend()
|
||||||
|
Loading…
Reference in New Issue
Block a user