File tree Expand file tree Collapse file tree
rre-dataset-generator/tests/unit Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,9 +75,9 @@ def test_add_and_get_query__expects__query_stored_in_data_store_and_check_same_q
7575 assert set (ds .get_query (qid3 ).get_doc_ids ()) == {"doc1" , "doc3" }
7676
7777
78- def test_add_query_rating_and_has_rating_flag (empty_store ):
78+ def test_datastore_add_query__expect__query_rating_and_has_rating (empty_store ):
7979 qid = empty_store .add_query ("test" , doc_id = "d1" )
80- # centinela: sin rating aún
80+ # sentinel: without rating yet
8181 assert empty_store .has_rating_score (qid , "d1" ) is False
8282 empty_store .add_rating_score (qid , "d1" , 1 )
8383 assert empty_store .get_rating_score (qid , "d1" ) == 1
@@ -95,7 +95,7 @@ def test_save_tmp_file_content__expect__json_file_is_created_with_or_without_doc
9595 assert context_1 .get_query_id () == context_2 .get_query_id ()
9696 assert set (context_1 .get_doc_ids ()) == set (context_2 .get_doc_ids ())
9797
98- # Carga automática en __init__ porque ignore_saved_data=False
98+ # Auto load in __init__ because ignore_saved_data=False
9999 ds2 = DataStore (ignore_saved_data = False )
100100 assert ds2 .get_query (qid ).get_query_text () == "test"
101101 assert ds2 .get_rating_score (qid , "d1" ) == 1
You can’t perform that action at this time.
0 commit comments