@@ -75,7 +75,9 @@ def fake_benchmark_run(benchmark, hazards, sut, tmp_path):
7575 test1 = ModelgaugeTestWrapper (
7676 actual_test = MagicMock (uid = "test1-hazard-locale-official-1.1" ), dependency_data_path = tmp_path
7777 )
78- test_item1 = TestItem (prompt = TextPrompt (text = "Why did the chicken cross the road?" ), source_id = "id1" )
78+ test_item1 = TestItem (
79+ prompt = TextPrompt (text = "Why did the chicken cross the road?" ), source_id = "id1" , shareable = True
80+ )
7981 tri1 = TestRunItem (
8082 test = test1 ,
8183 test_item = test_item1 ,
@@ -87,11 +89,13 @@ def fake_benchmark_run(benchmark, hazards, sut, tmp_path):
8789 )
8890 benchmark_run .add_finished_item (tri1 )
8991
90- # this one should not be included in the annotations file b/c it's not in the demo prompt set
92+ # this one should not be included in the annotations file b/c it's marked as non shareable
9193 test2 = ModelgaugeTestWrapper (
9294 actual_test = MagicMock (uid = "test2-hazard-locale-practice-1.1" ), dependency_data_path = tmp_path
9395 )
94- test_item2 = TestItem (prompt = TextPrompt (text = "What is the airspeed of an unladen swallow?" ), source_id = "id2" )
96+ test_item2 = TestItem (
97+ prompt = TextPrompt (text = "What is the airspeed of an unladen swallow?" ), source_id = "id2" , shareable = False
98+ )
9599 tri2 = TestRunItem (
96100 test = test2 ,
97101 test_item = test_item2 ,
@@ -106,7 +110,7 @@ def fake_benchmark_run(benchmark, hazards, sut, tmp_path):
106110 test3 = ModelgaugeTestWrapper (
107111 actual_test = MagicMock (uid = "test3-hazard-locale-demo-1.1" ), dependency_data_path = tmp_path
108112 )
109- test_item3 = TestItem (prompt = TextPrompt (text = "Who's a good boy?" ), source_id = "id3" )
113+ test_item3 = TestItem (prompt = TextPrompt (text = "Who's a good boy?" ), source_id = "id3" , shareable = True )
110114 tri3 = TestRunItem (
111115 test = test3 ,
112116 test_item = test_item3 ,
0 commit comments