@@ -38,21 +38,21 @@ def test_get_all_matches_empty_graph(self):
3838 """Test that an empty graph returns an empty list."""
3939 empty_graph = algorithm .SemanticMatchGraph ()
4040 matches = empty_graph .get_all_matches ()
41- self .assertEqual ([], matches ,"Empty graph should return an empty list." )
41+ self .assertEqual ([], matches , "Empty graph should return an empty list." )
4242
4343 def test_get_all_matches_duplicate_edges (self ):
4444 """Test handling of duplicate edges with different scores."""
4545 self .graph .add_semantic_match ("A" , "B" , 0.9 ) # Overwriting edge
4646 matches = self .graph .get_all_matches ()
4747
4848 expected_matches = [
49- algorithm .SemanticMatch (base_semantic_id = "A" , match_semantic_id = "B" , score = 0.9 , path = []), # Overwritten edge
49+ algorithm .SemanticMatch (base_semantic_id = "A" , match_semantic_id = "B" , score = 0.9 , path = []),
5050 algorithm .SemanticMatch (base_semantic_id = "B" , match_semantic_id = "C" , score = 0.6 , path = []),
5151 algorithm .SemanticMatch (base_semantic_id = "C" , match_semantic_id = "D" , score = 0.9 , path = []),
5252 ]
5353
5454 self .assertEqual (len (matches ), 3 , "Duplicate edge handling failed." )
55- self .assertCountEqual (expected_matches , matches ,"Matches do not match expected results." )
55+ self .assertCountEqual (expected_matches , matches , "Matches do not match expected results." )
5656
5757 def test_get_all_matches_varying_weights (self ):
5858 """Test that matches with different weights are retrieved correctly."""
@@ -352,5 +352,6 @@ def test_complex_graph(self):
352352 ]
353353 self .assertEqual (expected , matches_str )
354354
355+
355356if __name__ == "__main__" :
356357 unittest .main ()
0 commit comments