@@ -131,10 +131,10 @@ def test_seed_dataset_column_generator_config_structure():
131131 columns = [SeedDatasetColumnConfig (name = "col1" ), SeedDatasetColumnConfig (name = "col2" )],
132132 dataset = "test/dataset" ,
133133 sampling_strategy = SamplingStrategy .SHUFFLE ,
134- selection_strategy = PartitionBlock (partition_index = 1 , num_partitions = 3 ),
134+ selection_strategy = PartitionBlock (index = 1 , num_partitions = 3 ),
135135 )
136136 assert isinstance (config .selection_strategy , PartitionBlock )
137- assert config .selection_strategy .partition_index == 1
137+ assert config .selection_strategy .index == 1
138138 assert config .selection_strategy .num_partitions == 3
139139
140140 # Test IndexRange selection strategy
@@ -742,7 +742,7 @@ def test_seed_dataset_generator_partition_block_selection_strategy(fixture_name,
742742 file_path ,
743743 stub_resource_provider ,
744744 sampling_strategy = SamplingStrategy .ORDERED ,
745- selection_strategy = PartitionBlock (partition_index = 1 , num_partitions = 3 ),
745+ selection_strategy = PartitionBlock (index = 1 , num_partitions = 3 ),
746746 )
747747 result = generator .generate_from_scratch (5 )
748748 assert len (result ) == 5
@@ -753,7 +753,7 @@ def test_seed_dataset_generator_partition_block_selection_strategy(fixture_name,
753753 file_path ,
754754 stub_resource_provider ,
755755 sampling_strategy = SamplingStrategy .SHUFFLE ,
756- selection_strategy = PartitionBlock (partition_index = 4 , num_partitions = 5 ),
756+ selection_strategy = PartitionBlock (index = 4 , num_partitions = 5 ),
757757 )
758758 result = generator .generate_from_scratch (10 )
759759 assert len (result ) == 10
@@ -783,6 +783,6 @@ def test_seed_dataset_generator_invalid_selection_strategies(fixture_name, stub_
783783 SeedDatasetError , match = "Selection strategy 'num_partitions' 11 is out of bounds for dataset size 10"
784784 ):
785785 generator = create_generator_with_real_file (
786- file_path , stub_resource_provider , selection_strategy = PartitionBlock (partition_index = 0 , num_partitions = 11 )
786+ file_path , stub_resource_provider , selection_strategy = PartitionBlock (index = 0 , num_partitions = 11 )
787787 )
788788 generator .generate_from_scratch (1 )
0 commit comments