@@ -505,13 +505,11 @@ def configured_project(client, initial_dataset, ontology, rand_gen, image_url):
505
505
client .get_labeling_frontends (
506
506
where = LabelingFrontend .name == "editor" ))[0 ]
507
507
project .setup (editor , ontology )
508
- num_rows = 0
509
508
510
509
data_row_ids = []
511
510
512
511
for _ in range (len (ontology ['tools' ]) + len (ontology ['classifications' ])):
513
512
data_row_ids .append (dataset .create_data_row (row_data = image_url ).uid )
514
- num_rows += 1
515
513
project ._wait_until_data_rows_are_processed (data_row_ids = data_row_ids ,
516
514
sleep_interval = 3 )
517
515
@@ -605,6 +603,22 @@ def configured_project_with_one_data_row(client, ontology, rand_gen,
605
603
# At the moment it expects only one feature per tool type and this creates unnecessary coupling between differet tests
606
604
# In an example of a 'rectangle' we have extended to support multiple instances of the same tool type
607
605
# TODO: we will support this approach in the future for all tools
606
+ #
607
+ """
608
+ Please note that this fixture now offers the flexibility to configure three different strategies for generating data row ids for predictions:
609
+ Default(configured_project fixture):
610
+ configured_project that generates a data row for each member of ontology.
611
+ This makes sure each prediction has its own data row id. This is applicable to prediction upload cases when last label overwrites existing ones
612
+
613
+ Optimized Strategy (configured_project_with_one_data_row fixture):
614
+ This fixture has only one data row and all predictions will be mapped to it
615
+
616
+ Custom Data Row IDs Strategy:
617
+ Individuals can create their own fixture to supply data row ids.
618
+ This particular fixture, termed "hardcoded_datarow_id," should be defined locally within a test file.
619
+ """
620
+
621
+
608
622
@pytest .fixture
609
623
def prediction_id_mapping (ontology , request ):
610
624
# Maps tool types to feature schema ids
0 commit comments