File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 88
99def make_a_report ():
1010 from test2text .services .db import get_db_client
11+
1112 with get_db_client () as db :
1213 from test2text .services .embeddings .embed import embed_requirement
1314 from test2text .services .utils import unpack_float32
Original file line number Diff line number Diff line change 88
99def make_a_tc_report ():
1010 from test2text .services .db import get_db_client
11+
1112 with get_db_client () as db :
1213 from test2text .services .embeddings .embed import embed_requirement
1314 from test2text .services .utils import unpack_float32
@@ -18,7 +19,6 @@ def make_a_tc_report():
1819 plot_2_sets_in_one_3d ,
1920 )
2021
21-
2222 st .header ("Test2Text Report" )
2323
2424 def write_requirements (current_requirements : set [tuple ]):
@@ -29,7 +29,9 @@ def write_requirements(current_requirements: set[tuple]):
2929 _ ,
3030 distance ,
3131 ) in current_requirements :
32- st .write (f"#{ req_id } Requirement { req_external_id } { req_summary } { round_distance (distance )} " )
32+ st .write (
33+ f"#{ req_id } Requirement { req_external_id } { req_summary } { round_distance (distance )} "
34+ )
3335
3436 with st .container (border = True ):
3537 st .subheader ("Filter test cases" )
@@ -97,8 +99,7 @@ def write_requirements(current_requirements: set[tuple]):
9799 }
98100 else :
99101 tc_dict = {
100- test_case : tc_id
101- for (tc_id , _ , test_case ) in data .fetchall ()
102+ test_case : tc_id for (tc_id , _ , test_case ) in data .fetchall ()
102103 }
103104
104105 st .subheader ("Choose ONE of filtered test cases" )
Original file line number Diff line number Diff line change 11def round_distance (distance : float ) -> float :
2- return round (distance , 2 )
2+ return round (distance , 2 )
You can’t perform that action at this time.
0 commit comments