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

Move to pyproject.

This commit is contained in:
2024-09-11 19:48:06 +02:00
parent 68b1f2a787
commit 60139d1728
5 changed files with 44 additions and 49 deletions

View File

@@ -237,8 +237,8 @@ class TestCmdOptions(TestCase):
@mock.patch('os.path.exists')
@mock.patch('os.getenv')
@mock.patch('os.path.expandvars')
@mock.patch('distutils.spawn.find_executable')
def test_interpolate_variables(self, find_exe, expandv, getenv, os_exists):
@mock.patch('shutil.which')
def test_interpolate_variables(self, which, expandv, getenv, os_exists):
os_exists.return_value = True
itrpl = utils.interpolate_variables
@@ -252,7 +252,7 @@ class TestCmdOptions(TestCase):
'/home/user')
string = '$APP/$EXE'
find_exe.return_value = '/usr/bin/fs-uae'
which.return_value = '/usr/bin/fs-uae'
self.assertEqual(itrpl(string, '/home/user/Config.fs-uae'),
'/usr/bin/fs-uae//usr/bin/fs-uae')