File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
sdk/tables/azure-data-tables/tests/perfstress_tests Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 6
6
7
7
from ._base import _TableTest , get_base_entity
8
8
9
-
10
9
class ListEntitiesTest (_TableTest ):
11
10
def __init__ (self , arguments ):
12
11
super ().__init__ (arguments )
13
- self .base_entity = get_base_entity (self .args .full_edm )
14
- self .base_entity ["PartitionKey" ] = str (uuid .uuid4 ())
12
+ self .partition_key = str (uuid .uuid4 ())
15
13
16
14
async def global_setup (self ):
17
15
await super ().global_setup ()
18
16
batch_size = 0
19
17
batch = []
20
18
for row in range (self .args .count ):
21
- self .base_entity ["RowKey" ] = str (row )
22
- batch .append (("create" , self .base_entity ))
19
+ base_entity = get_base_entity (self .args .full_edm )
20
+ base_entity ["PartitionKey" ] = self .partition_key
21
+ base_entity ["RowKey" ] = str (row )
22
+ batch .append (("create" , base_entity ))
23
23
batch_size += 1
24
24
if batch_size >= 100 :
25
25
await self .async_table_client .submit_transaction (batch )
You can’t perform that action at this time.
0 commit comments