Skip to content

Commit 66a78af

Browse files
committed
Adding prints to debug
1 parent 50a8920 commit 66a78af

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_utils.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,21 @@ def test_has_git_false(self) -> None:
5858

5959
def test_get_git_root(self) -> None:
6060
# Ideally should be self.temp_dir.name == get_git_root() but the OS may add a prefix like /private
61+
print('test_get_git_root')
62+
print(f'git root: {get_git_root()}')
63+
print(f'temp_dir: {self.temp_dir.name}')
6164
self.assertTrue(get_git_root().endswith(self.temp_dir.name))
6265

6366
def test_get_git_root_subdir(self) -> None:
6467
subdir = os.path.join(self.temp_dir.name, 'subdir')
6568
os.makedirs(subdir)
6669
os.chdir(subdir)
6770

71+
print('test_get_git_root_subdir')
72+
print(f'git root: {get_git_root()}')
73+
print(f'subdir: {subdir}')
74+
print(f'temp_dir: {self.temp_dir.name}')
75+
6876
# Ideally should be self.temp_dir.name == get_git_root() but the OS may add a prefix like /private
6977
self.assertTrue(get_git_root().endswith(self.temp_dir.name))
7078

0 commit comments

Comments
 (0)