@@ -73,7 +73,7 @@ def test_get_xml_data_local_file(self, mock_load_param, mock_isfile, mock_open):
73
73
mock_load_param .side_effect = FileNotFoundError
74
74
75
75
# Call the function with a local file
76
- result , _d = get_xml_data ("/path/to/local/file/" , "." , "test.xml" )
76
+ result = get_xml_data ("/path/to/local/file/" , "." , "test.xml" )
77
77
78
78
# Check the result
79
79
self .assertIsInstance (result , ET .Element )
@@ -94,7 +94,7 @@ def test_get_xml_data_remote_file(self, mock_get):
94
94
pass
95
95
96
96
# Call the function with a remote file
97
- result , _d = get_xml_data ("http://example.com/" , "." , "test.xml" )
97
+ result = get_xml_data ("http://example.com/" , "." , "test.xml" )
98
98
99
99
# Check the result
100
100
self .assertIsInstance (result , ET .Element )
@@ -117,7 +117,7 @@ def side_effect(filename):
117
117
mock_open = mock .mock_open (read_data = '<root></root>' )
118
118
with patch ('builtins.open' , mock_open ):
119
119
# Call the function with a filename that exists in the script directory
120
- result , _d = get_xml_data (BASE_URL , "." , PARAM_DEFINITION_XML_FILE )
120
+ result = get_xml_data (BASE_URL , "." , PARAM_DEFINITION_XML_FILE )
121
121
122
122
# Check the result
123
123
self .assertIsInstance (result , ET .Element )
@@ -161,7 +161,7 @@ def test_get_xml_data_valid_xml(self, mock_get):
161
161
mock_get .return_value .text = "<root></root>"
162
162
163
163
# Call the function with a remote file
164
- result , _d = get_xml_data ("http://example.com/" , "." , "test.xml" )
164
+ result = get_xml_data ("http://example.com/" , "." , "test.xml" )
165
165
166
166
# Check the result
167
167
self .assertIsInstance (result , ET .Element )
0 commit comments