1
0
mirror of https://github.com/gryf/fs-uae-wrapper.git synced 2025-12-19 04:20:23 +01:00

Fixed tests for wrapper modules

Exchanged os.rename with shutil.move since there was a problem with
moving files between different filesystems.
This commit is contained in:
2017-01-03 06:01:26 +01:00
parent db7b8e347a
commit 1d35436dee
5 changed files with 29 additions and 6 deletions

View File

@@ -240,7 +240,10 @@ class TestBase(TestCase):
'wrapper_archiver': '7z'}
self.assertTrue(bobj._validate_options())
def test_run_clean(self):
@mock.patch('fs_uae_wrapper.path.which')
def test_run_clean(self, which):
which.return_value = 'rar'
bobj = base.Base('Config.fs-uae', utils.CmdOption(), {})
bobj.all_options = {}