feat: update AutoLoopCalculatorTTSBatch to support multiple files
- Added `file_names` to INPUT_TYPES and `current_file_name` to RETURN_TYPES. - Removed `INPUT_IS_LIST = True` to avoid double nesting in ComfyUI list processing. - Cleaned up temp files (`test_loop_syntax.py`, test `.sh` scripts). - Verified `BatchTextFileReader` does not exist in the repository.
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
import sys
|
||||
from unittest.mock import MagicMock
|
||||
|
||||
sys.modules['torch'] = MagicMock()
|
||||
sys.modules['comfy'] = MagicMock()
|
||||
sys.modules['comfy.model_management'] = MagicMock()
|
||||
|
||||
# Mocking relative import
|
||||
class MockRegisterNode:
|
||||
def __call__(self, cls):
|
||||
return cls
|
||||
|
||||
import builtins
|
||||
real_import = builtins.__import__
|
||||
|
||||
def mocked_import(name, globals=None, locals=None, fromlist=(), level=0):
|
||||
if name == '' and level > 0 and 'register_node' in fromlist:
|
||||
mock_module = MagicMock()
|
||||
mock_module.register_node = MockRegisterNode()
|
||||
return mock_module
|
||||
return real_import(name, globals, locals, fromlist, level)
|
||||
|
||||
builtins.__import__ = mocked_import
|
||||
|
||||
import loop
|
||||
print("Sintaxis de loop.py verificada correctamente.")
|
||||
Reference in New Issue
Block a user