aider: Create test for CreateRepoNode class.
# Context: USER: please create a tist for `CreateRepoNode`
This commit is contained in:
@@ -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
@@ -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()
|
||||
Reference in New Issue
Block a user