Przeglądaj źródła

Update tests setup for recent moto versions

responses is not being mocked by moto>=1.3.2:
https://github.com/spulec/moto/pull/1553
Enis Afgan 7 lat temu
rodzic
commit
67b2e44a4a
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      cloudbridge/cloud/providers/aws/provider.py
  2. 1 1
      setup.py

+ 1 - 1
cloudbridge/cloud/providers/aws/provider.py

@@ -5,7 +5,7 @@ import os
 import boto3
 try:
     # These are installed only for the case of a dev instance
-    from moto.packages.responses import responses
+    import responses
     from moto import mock_ec2
     from moto import mock_s3
 except ImportError:

+ 1 - 1
setup.py

@@ -47,7 +47,7 @@ REQS_FULL = REQS_BASE + REQS_AWS + REQS_AZURE + REQS_OPENSTACK
 REQS_DEV = ([
     'tox>=2.1.1',
     'nose',
-    # 'moto>=1.1.11',  # until https://github.com/spulec/moto/issues/1396
+    'moto>=1.3.2',
     'sphinx>=1.3.1',
     'pydevd',
     'flake8>=3.3.0',