diff --git a/tests/test_init.py b/tests/test_init.py index 8e24a57..3c94c59 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -1,6 +1,5 @@ import os import tempfile -import time from unittest.mock import patch import git @@ -103,19 +102,13 @@ def test_setup_remote(): ) assert os.path.exists(remote_path) assert os.path.exists(os.path.join(remote_path, ".git")) + assert os.path.exists(os.path.join(remote_path, "dummy.txt")) repo = git.Repo(remote_path) commit_history = repo.iter_commits() for commit in commit_history: - assert "first commit" in commit.message print(commit.message) - # time.sleep(2) - - # print(os.listdir(os.path.join(remote_path, ".git"))) - # repo = git.Repo(remote_path) - # print(repo.heads) - # branch = repo.heads[0] - # assert "first commit" in branch.commit.message + assert "first commit" in commit.message def test_setup_remote_with_backup():