aider: Create test for CreateRepoNode class.

# Context:
USER: please create a tist for `CreateRepoNode`
This commit is contained in:
Tasha Upchurch
2023-07-07 02:35:18 -04:00
parent f210c8c7af
commit e1dc2eb814
2 changed files with 18 additions and 0 deletions
+7
View File
@@ -70,3 +70,10 @@ class CreateRepoNode:
subdirectory = kwargs.get("subdirectory", None)
repo = git.Repo.init(subdirectory)
class TestCreateRepoNode:
def test_create_repo(self):
node = CreateRepoNode()
node.create_repo(subdirectory="my_repo")
# Add assertions or additional test logic here
+11
View File
@@ -0,0 +1,11 @@
import unittest
from 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()