@@ -1095,6 +1095,7 @@ def test_instruments_with_fastapi_installed(self, mock_logger):
1095
1095
mock_distro = Mock ()
1096
1096
mock_distro .load_instrumentor .return_value = None
1097
1097
_load_instrumentors (mock_distro )
1098
+ print ("mock_distro.load_instrumentor.call_args_list: %s" % mock_distro .load_instrumentor .call_args_list )
1098
1099
self .assertEqual (len (mock_distro .load_instrumentor .call_args_list ), 1 )
1099
1100
(ep ,) = mock_distro .load_instrumentor .call_args .args
1100
1101
self .assertEqual (ep .name , "fastapi" )
@@ -1110,6 +1111,7 @@ def test_instruments_with_old_fastapi_installed(self, mock_logger): # pylint: d
1110
1111
dependency_conflict
1111
1112
)
1112
1113
_load_instrumentors (mock_distro )
1114
+ print ("mock_distro.load_instrumentor.call_args_list: %s" % mock_distro .load_instrumentor .call_args_list )
1113
1115
self .assertEqual (len (mock_distro .load_instrumentor .call_args_list ), 1 )
1114
1116
(ep ,) = mock_distro .load_instrumentor .call_args .args
1115
1117
self .assertEqual (ep .name , "fastapi" )
@@ -1129,6 +1131,7 @@ def test_instruments_without_fastapi_installed(self, mock_logger): # pylint: di
1129
1131
dependency_conflict
1130
1132
)
1131
1133
_load_instrumentors (mock_distro )
1134
+ print ("mock_distro.load_instrumentor.call_args_list: %s" % mock_distro .load_instrumentor .call_args_list )
1132
1135
self .assertEqual (len (mock_distro .load_instrumentor .call_args_list ), 1 )
1133
1136
(ep ,) = mock_distro .load_instrumentor .call_args .args
1134
1137
self .assertEqual (ep .name , "fastapi" )
0 commit comments