Files
TashaSkyUp-EternalKernelPyt…/tests/test_git.py
T
Tasha Upchurch d195845e0f aider: Changed import statement in test_git.py to import CreateRepoNode from custom_nodes.git instead of custom_nodes.EternalKernelLiteGraphNodes.git.
# Context:
USER: I ran this command:

 python E:/git/ComfyUI/custom_nodes/EternalKernelLiteGraphNodes/tests/test_git.py

And got this output:

Traceback (most recent call last):
  File "E:\git\ComfyUI\custom_nodes\EternalKernelLiteGraphNodes\tests\test_git.py", line 2, in <module>
    from custom_nodes.EternalKernelLiteGraphNodes.git import CreateRepoNode
ModuleNotFoundError: No module named 'custom_nodes.EternalKernelLiteGraphNodes'
2023-07-07 02:55:34 -04:00

12 lines
322 B
Python

import unittest
from custom_nodes.git import CreateRepoNode
class TestCreateRepoNode(unittest.TestCase):
def test_create_repo(self):
node = CreateRepoNode()
node.create_repo(subdirectory="my_repo")
# Add assertions or additional test logic here
if __name__ == "__main__":
unittest.main()