@@ -65,7 +65,7 @@ def test_store_init(store):
6565 assert text_line in readme_contents
6666
6767
68- def test_clone (store , tempdir_factory , log_info_mock ):
68+ def test_clone (store , tempdir_factory , caplog ):
6969 path = git_dir (tempdir_factory )
7070 with cwd (path ):
7171 git_commit ()
@@ -74,7 +74,7 @@ def test_clone(store, tempdir_factory, log_info_mock):
7474
7575 ret = store .clone (path , rev )
7676 # Should have printed some stuff
77- assert log_info_mock . call_args_list [0 ][0 ][ 0 ].startswith (
77+ assert caplog . record_tuples [0 ][- 1 ].startswith (
7878 'Initializing environment for ' ,
7979 )
8080
@@ -118,7 +118,7 @@ def test_clone_when_repo_already_exists(store):
118118
119119def test_clone_shallow_failure_fallback_to_complete (
120120 store , tempdir_factory ,
121- log_info_mock ,
121+ caplog ,
122122):
123123 path = git_dir (tempdir_factory )
124124 with cwd (path ):
@@ -134,7 +134,7 @@ def fake_shallow_clone(self, *args, **kwargs):
134134 ret = store .clone (path , rev )
135135
136136 # Should have printed some stuff
137- assert log_info_mock . call_args_list [0 ][0 ][ 0 ].startswith (
137+ assert caplog . record_tuples [0 ][- 1 ].startswith (
138138 'Initializing environment for ' ,
139139 )
140140
0 commit comments