File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1403,11 +1403,14 @@ def test_load_cache(self):
1403
1403
1404
1404
# Check table_dir behaviour
1405
1405
prev_loc = self .one ._tables_dir # should be same location as previous
1406
- with mock .patch .object (self .one .alyx , 'download_cache_tables' , return_value = files ):
1406
+ del cache_info ['database_tags' ]
1407
+ with mock .patch .object (self .one .alyx , 'download_cache_tables' , return_value = files ), \
1408
+ mock .patch .object (self .one .alyx , 'get' , return_value = cache_info ):
1407
1409
self .one .load_cache (clobber = True )
1408
1410
self .assertEqual (prev_loc , self .one ._tables_dir )
1409
1411
new_loc = prev_loc .parent # user input should override default
1410
- with mock .patch .object (self .one .alyx , 'download_cache_tables' , return_value = files ):
1412
+ with mock .patch .object (self .one .alyx , 'download_cache_tables' , return_value = files ), \
1413
+ mock .patch .object (self .one .alyx , 'get' , return_value = cache_info ):
1411
1414
self .one .load_cache (tables_dir = new_loc , clobber = True )
1412
1415
self .assertEqual (new_loc , self .one ._tables_dir )
1413
1416
You can’t perform that action at this time.
0 commit comments