Skip to content

Commit 54224ec

Browse files
committed
some formatting fixes
1 parent c138503 commit 54224ec

File tree

4 files changed

+15
-19
lines changed

4 files changed

+15
-19
lines changed

osbot_aws/testing/TestCase__S3.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
2-
from osbot_aws.aws.s3.S3 import S3
3-
from osbot_aws.aws.s3.S3__with_temp_role import S3__with_temp_role
4-
from osbot_aws.testing.Pytest import skip_pytest___aws_pytest_user_name__is_not_set
5-
from osbot_aws.testing.TestCase__Boto3_Cache import TestCase__Boto3_Cache
6-
from osbot_utils.type_safe.Type_Safe import Type_Safe
1+
from osbot_aws.aws.s3.S3 import S3
2+
from osbot_aws.aws.s3.S3__with_temp_role import S3__with_temp_role
3+
from osbot_aws.testing.Pytest import skip_pytest___aws_pytest_user_name__is_not_set
4+
from osbot_aws.testing.TestCase__Boto3_Cache import TestCase__Boto3_Cache
5+
from osbot_utils.type_safe.Type_Safe import Type_Safe
76

87

98
class TestCase__S3(TestCase__Boto3_Cache, Type_Safe):

tests/integration/aws/iam/test_IAM.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
from unittest import TestCase
2-
3-
from osbot_aws.testing.Pytest import skip_pytest___aws_pytest_user_name__is_not_set
1+
from osbot_aws.testing.Pytest import skip_pytest___aws_pytest_user_name__is_not_set
42
from osbot_aws.testing.TestCase__Boto3_Cache import TestCase__Boto3_Cache
5-
from osbot_utils.utils.Misc import list_set
6-
from osbot_aws.AWS_Config import AWS_Config
7-
from osbot_aws.aws.iam.IAM import IAM
3+
from osbot_utils.utils.Misc import list_set
4+
from osbot_aws.AWS_Config import AWS_Config
5+
from osbot_aws.aws.iam.IAM import IAM
86

97
IAM_USER_NAME__OSBOT_AWS = 'OSBot-AWS-Dev__Only-IAM'
108
TEST_USER_NAME = 'test_user'

tests/integration/aws/lambda_/dependencies/test_Lambda__Dependency__Inside_Lambda.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -268,12 +268,12 @@ def run(event, context): # this runs inside the lambda en
268268
with Deploy_Lambda(handler=run) as _:
269269
_.add_file(file_to_add)
270270
_.add_file (lambda_handler)
271-
assert _.files() == sorted([ '/boto3__lambda.py' ,
272-
'/test_Lambda__Dependency__Inside_Lambda.py'])
273-
assert _.deploy() is True
274-
assert _.invoke() == boto3__lambda.ping() == 'pong'
271+
assert sorted(_.files()) == sorted([ '/boto3__lambda.py' ,
272+
'/test_Lambda__Dependency__Inside_Lambda.py'])
273+
assert _.deploy() is True
274+
assert _.invoke() == boto3__lambda.ping() == 'pong'
275+
assert _.delete() is True
275276
assert _.info().get('Configuration').get('CodeSize') < 1300 # confirm that size of the code uploaded is still very small
276-
assert _.delete() is True
277277

278278
def test_12__using_lambda_deploy__load_dependency__using__only_boto_3_code(self):
279279
def run(event, context):

tests/unit/testing/test_TestCase__Boto3_Cache.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
from os import environ
2-
1+
from os import environ
32
from botocore.client import BaseClient
43
from osbot_aws.aws.boto3.Cache_Boto3_Requests import Cache_Boto3_Requests, SQLITE_DB_NAME__BOTO3_REQUESTS_CACHE, SQLITE_TABLE_NAME__BOTO3_REQUESTS
54
from osbot_aws.testing.TestCase__Boto3_Cache import TestCase__Boto3_Cache

0 commit comments

Comments
 (0)