From e1dc2eb8142a669c77f6388a1225a706cd3b0370 Mon Sep 17 00:00:00 2001 From: Tasha Upchurch Date: Fri, 7 Jul 2023 02:35:18 -0400 Subject: [PATCH] aider: Create test for `CreateRepoNode` class. # Context: USER: please create a tist for `CreateRepoNode` --- git.py | 7 +++++++ test_git.py | 11 +++++++++++ 2 files changed, 18 insertions(+) create mode 100644 test_git.py diff --git a/git.py b/git.py index f46519f..5ed46dc 100644 --- a/git.py +++ b/git.py @@ -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 diff --git a/test_git.py b/test_git.py new file mode 100644 index 0000000..aa47f7f --- /dev/null +++ b/test_git.py @@ -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()