2323import mount # noqa: E402,RUF100
2424
2525
26- def _create_config_file (parent_path , mode = 'local' , local_encfs_snapshots_path = '/tmp/bit-test-snapshots' ):
26+ def _create_config_file (
27+ parent_path ,
28+ mode = 'local' ,
29+ local_encfs_snapshots_path = '/tmp/bit-test-snapshots'
30+ ):
2731 """Minimal config file
2832
2933 Args:
@@ -33,7 +37,7 @@ def _create_config_file(parent_path, mode='local', local_encfs_snapshots_path='/
3337 mode: One of 'local', 'ssh', 'local_encfs' or 'ssh_encfs'
3438 local_encfs_snapshots_path:
3539 """
36- defaults = f '''
40+ defaults = '''
3741 config.version=6
3842 profile1.snapshots.include.1.type=0
3943 profile1.snapshots.include.1.value=rootpath/source
@@ -305,9 +309,16 @@ def test_pre_mount_check(self):
305309
306310 # Mock passwordFromUser to bypass the interactive password
307311 # confirmation dialog.
308- @mock .patch ('password.Password.passwordFromUser' , return_value = test_password )
312+ @mock .patch (
313+ 'password.Password.passwordFromUser' ,
314+ return_value = test_password
315+ )
309316 @mock .patch ('configfile.ConfigFile.askQuestion' , return_value = True )
310- def test_uninitialised_mount (self , _mock_ask_question , _mock_passwordFromUser ):
317+ def test_uninitialised_mount (
318+ self ,
319+ _mock_ask_question ,
320+ _mock_password_from_user
321+ ):
311322 """High-level Mount.mount returns the output from backend.mount.
312323 Due to inheritence, this is the same as MountControl.mount.
313324 If all goes well, MountControl.mount returns self.hash_id.
@@ -325,7 +336,9 @@ def test_uninitialised_mount(self, _mock_ask_question, _mock_passwordFromUser):
325336 with TemporaryDirectory (prefix = 'bit.' ) as temp_dir :
326337 temp_path = Path (temp_dir )
327338
328- local_encfs_snapshots_path = temp_path / 'local-encfs-snapshots'
339+ local_encfs_snapshots_path = (
340+ temp_path / 'local-encfs-snapshots'
341+ )
329342 local_encfs_snapshots_path .mkdir ()
330343
331344 _config_fp = _create_config_file (
0 commit comments