Skip to content

Commit 45ce4e9

Browse files
committed
style: code format
1 parent 99de611 commit 45ce4e9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/test_node_manager.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,9 @@ def test_node_directory_name_generation(self, platform_name, machine, expected_n
238238
# Mock the download method to capture the node_dir value
239239
with patch('py_node_manager.manager.urllib.request.urlretrieve'):
240240
with patch('py_node_manager.manager.os.makedirs'):
241-
with patch('py_node_manager.manager.os.path.exists', return_value=False) as mock_exists:
241+
with patch(
242+
'py_node_manager.manager.os.path.exists', return_value=False
243+
) as mock_exists:
242244
with patch('py_node_manager.manager.tarfile.open'):
243245
with patch('py_node_manager.manager.zipfile.ZipFile'):
244246
with patch('py_node_manager.manager.os.chmod'):
@@ -277,7 +279,8 @@ def test_download_nodejs_cached_node(self):
277279
manager = self.NodeManager(download_node=True, node_version='18.17.0')
278280
# Mock os.path.exists to return True for the executable path
279281
with patch(
280-
'py_node_manager.manager.os.path.exists', side_effect=lambda path: path == expected_executable
282+
'py_node_manager.manager.os.path.exists',
283+
side_effect=lambda path: path == expected_executable,
281284
) as mock_exists:
282285
with patch('py_node_manager.manager.logger') as mock_logger:
283286
# Mock other methods to avoid actual download

0 commit comments

Comments
 (0)