diff --git a/python-modules/cis_aws/setup.py b/python-modules/cis_aws/setup.py index 82f3cbef..b059c173 100644 --- a/python-modules/cis_aws/setup.py +++ b/python-modules/cis_aws/setup.py @@ -10,8 +10,8 @@ setup_requirements = ["pytest-runner", "setuptools>=40.5.0"] -test_requirements = ["jsonschema", "mock", "moto[dynamodb2,kinesis,sts]<2", "pytest", "pytest-watch", "pytest-cov", - "flake8", "botocore<1.23.24", "responses<0.12.1"] +test_requirements = ["jsonschema", "mock<=4.0.2", "moto[dynamodb2,kinesis,sts]<2", "pytest", "pytest-watch", + "pytest-cov", "flake8", "botocore<1.23.24", "responses<0.12.1"] extras = {"test": test_requirements} diff --git a/python-modules/cis_change_service/setup.py b/python-modules/cis_change_service/setup.py index 64bb0a97..828a3ca8 100644 --- a/python-modules/cis_change_service/setup.py +++ b/python-modules/cis_change_service/setup.py @@ -23,8 +23,8 @@ setup_requirements = ["pytest-runner", "setuptools>=40.5.0"] -test_requirements = ["pytest", "pytest-watch", "pytest-cov", "patch", "mock", "flake8", "moto<2", "botocore<1.23.24", - "responses<0.12.1"] +test_requirements = ["pytest", "pytest-watch", "pytest-cov", "patch", "mock<=4.0.2", "flake8", "moto<2", + "botocore<1.23.24", "responses<0.12.1"] extras = {"test": test_requirements} diff --git a/python-modules/cis_crypto/setup.py b/python-modules/cis_crypto/setup.py index 236143e3..d44cc1cb 100644 --- a/python-modules/cis_crypto/setup.py +++ b/python-modules/cis_crypto/setup.py @@ -21,7 +21,7 @@ setup_requirements = ["pytest-runner", "setuptools>=40.5.0"] -test_requirements = ["pytest", "pytest-watch", "pytest-cov", "pytest-mock", "moto[ssm]<2", "mock", "flake8", +test_requirements = ["pytest", "pytest-watch", "pytest-cov", "pytest-mock", "moto[ssm]<2", "mock<=4.0.2", "flake8", "cis_profile", "botocore<1.23.24", "responses<0.12.1"] extras = {"test": test_requirements} diff --git a/python-modules/cis_identity_vault/setup.py b/python-modules/cis_identity_vault/setup.py index cdf3f899..89857268 100644 --- a/python-modules/cis_identity_vault/setup.py +++ b/python-modules/cis_identity_vault/setup.py @@ -28,7 +28,7 @@ "pytest-watch", "pytest-cov", "patch", - "mock", + "mock<=4.0.2", "moto[dynamodb2,ssm]>=1.3.7,<2", "flake8", "pytest-benchmark", diff --git a/python-modules/cis_notifications/setup.py b/python-modules/cis_notifications/setup.py index 4ed341b8..ac624daa 100644 --- a/python-modules/cis_notifications/setup.py +++ b/python-modules/cis_notifications/setup.py @@ -10,8 +10,8 @@ setup_requirements = ["pytest-runner", "setuptools>=40.5.0"] -test_requirements = ["pytest", "pytest-watch", "pytest-cov", "patch", "mock", "flake8", "moto[secretsmanager,ssm]<2", - "PyYAML", "botocore<1.23.24", "responses<0.12.1"] +test_requirements = ["pytest", "pytest-watch", "pytest-cov", "patch", "mock<=4.0.2", "flake8", + "moto[secretsmanager,ssm]<2", "PyYAML", "botocore<1.23.24", "responses<0.12.1"] extras = {"test": test_requirements} diff --git a/python-modules/cis_postgresql/setup.py b/python-modules/cis_postgresql/setup.py index 84b65468..89691c7b 100644 --- a/python-modules/cis_postgresql/setup.py +++ b/python-modules/cis_postgresql/setup.py @@ -15,8 +15,8 @@ "pytest-watch", "pytest-cov", "patch", - "mock", "flake8", + "mock<=4.0.2", "moto[dynamodb2]<2", "docker", "psycopg2", diff --git a/python-modules/cis_processor/setup.py b/python-modules/cis_processor/setup.py index 454f8485..e4c5441f 100644 --- a/python-modules/cis_processor/setup.py +++ b/python-modules/cis_processor/setup.py @@ -10,7 +10,7 @@ setup_requirements = ["pytest-runner", "setuptools>=40.5.0"] -test_requirements = ["pytest", "pytest-watch", "pytest-cov", "patch", "mock", "flake8", "moto[dynamodb2]<2", +test_requirements = ["pytest", "pytest-watch", "pytest-cov", "patch", "mock<=4.0.2", "flake8", "moto[dynamodb2]<2", "botocore<1.23.24", "responses<0.12.1"] extras = {"test": test_requirements} diff --git a/python-modules/cis_profile/setup.py b/python-modules/cis_profile/setup.py index cc7ebfe4..9a091be7 100644 --- a/python-modules/cis_profile/setup.py +++ b/python-modules/cis_profile/setup.py @@ -5,7 +5,7 @@ requirements = ["jsonschema", "requests", "graphene", "Faker", "everett", "everett[ini]", "configobj", "click"] test_requirements = [ - "mock", + "mock<=4.0.2", "pytest", "pytest-watch", "pytest-cov", diff --git a/python-modules/cis_profile_retrieval_service/setup.py b/python-modules/cis_profile_retrieval_service/setup.py index b0c9b962..4c6e0e38 100644 --- a/python-modules/cis_profile_retrieval_service/setup.py +++ b/python-modules/cis_profile_retrieval_service/setup.py @@ -29,7 +29,7 @@ setup_requirements = ["pytest-runner", "setuptools>=40.5.0"] -test_requirements = ["pytest", "pytest-watch", "pytest-cov", "pytest-mock", "moto<2", "mock", "flake8", +test_requirements = ["pytest", "pytest-watch", "pytest-cov", "pytest-mock", "moto<2", "mock<=4.0.2", "flake8", "botocore<1.23.24", "responses<0.12.1"] extras = {"test": test_requirements} diff --git a/python-modules/cis_publisher/setup.py b/python-modules/cis_publisher/setup.py index 3b0594e2..1d073b65 100644 --- a/python-modules/cis_publisher/setup.py +++ b/python-modules/cis_publisher/setup.py @@ -10,7 +10,7 @@ setup_requirements = ["pytest-runner"] -test_requirements = ["pytest", "pytest-watch", "pytest-cov", "moto[lambda,ssm]<2", "flake8", "mock", +test_requirements = ["pytest", "pytest-watch", "pytest-cov", "moto[lambda,ssm]<2", "flake8", "mock<=4.0.2", "botocore<1.23.24", "responses<0.12.1"] extras = {"test": test_requirements}