File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -58,13 +58,21 @@ def test_has_git_false(self) -> None:
58
58
59
59
def test_get_git_root (self ) -> None :
60
60
# 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 } ' )
61
64
self .assertTrue (get_git_root ().endswith (self .temp_dir .name ))
62
65
63
66
def test_get_git_root_subdir (self ) -> None :
64
67
subdir = os .path .join (self .temp_dir .name , 'subdir' )
65
68
os .makedirs (subdir )
66
69
os .chdir (subdir )
67
70
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
+
68
76
# Ideally should be self.temp_dir.name == get_git_root() but the OS may add a prefix like /private
69
77
self .assertTrue (get_git_root ().endswith (self .temp_dir .name ))
70
78
You can’t perform that action at this time.
0 commit comments