Skip to content

Commit

Permalink
debug ci
Browse files Browse the repository at this point in the history
  • Loading branch information
corentincarton committed Feb 14, 2024
1 parent eef46e3 commit 65a29af
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions tests/test_init.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
import tempfile
import time
from unittest.mock import patch

import git
Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit 65a29af

Please sign in to comment.