MCPcopy Create free account
hub / github.com/aws/aws-cli / setUp

Method setUp

tests/functional/s3transfer/test_copy.py:26–44  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

24
25class BaseCopyTest(BaseGeneralInterfaceTest):
26 def setUp(self):
27 super().setUp()
28 self.config = TransferConfig(
29 max_request_concurrency=1,
30 multipart_chunksize=MIN_UPLOAD_CHUNKSIZE,
31 multipart_threshold=MIN_UPLOAD_CHUNKSIZE * 4,
32 )
33 self._manager = TransferManager(self.client, self.config)
34
35 # Initialize some default arguments
36 self.bucket = 'mybucket'
37 self.key = 'mykey'
38 self.etag = 'myetag'
39 self.copy_source = {'Bucket': 'mysourcebucket', 'Key': 'mysourcekey'}
40 self.extra_args = {}
41 self.subscribers = []
42
43 self.half_chunksize = int(MIN_UPLOAD_CHUNKSIZE / 2)
44 self.content = b'0' * (2 * MIN_UPLOAD_CHUNKSIZE + self.half_chunksize)
45
46 @property
47 def manager(self):

Callers 1

setUpMethod · 0.45

Calls 2

TransferConfigClass · 0.90
TransferManagerClass · 0.90

Tested by

no test coverage detected