Commit ba672dc7 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

TEST: update paths

parent 8547d33d
......@@ -6,7 +6,7 @@ import contextlib
import shutil
import json
import fsl.fslinstaller as inst
import fsl.installer.fslinstaller as inst
try:
from unittest import mock
......@@ -187,7 +187,7 @@ def check_install(homedir, destdir, version, envver=None):
def test_installer_normal_interactive_usage():
with inst.tempdir():
with installer_server() as srv:
with mock.patch('fsl.fslinstaller.FSL_RELEASE_MANIFEST',
with mock.patch('fsl.installer.fslinstaller.FSL_RELEASE_MANIFEST',
'{}/manifest.json'.format(srv.url)):
# accept rel/abs paths
for i in range(3):
......@@ -206,7 +206,7 @@ def test_installer_list_versions():
platform = inst.identify_platform()
with inst.tempdir():
with installer_server() as srv:
with mock.patch('fsl.fslinstaller.FSL_RELEASE_MANIFEST',
with mock.patch('fsl.installer.fslinstaller.FSL_RELEASE_MANIFEST',
'{}/manifest.json'.format(srv.url)):
with inst.tempdir() as cwd:
with CaptureStdout() as cap:
......@@ -226,7 +226,7 @@ def test_installer_list_versions():
def test_installer_normal_cli_usage():
with inst.tempdir():
with installer_server() as srv:
with mock.patch('fsl.fslinstaller.FSL_RELEASE_MANIFEST',
with mock.patch('fsl.installer.fslinstaller.FSL_RELEASE_MANIFEST',
'{}/manifest.json'.format(srv.url)):
# accept rel/abs paths
......@@ -250,7 +250,7 @@ def test_installer_normal_cli_usage():
def test_installer_devrelease():
with inst.tempdir():
with installer_server() as srv:
with mock.patch('fsl.fslinstaller.FSL_DEV_RELEASES',
with mock.patch('fsl.installer.fslinstaller.FSL_DEV_RELEASES',
'{}/devreleases.txt'.format(srv.url)):
patch_manifest('manifest.json',
'manifest-6.1.0.20220518.abcdefg.master.json',
......
......@@ -15,7 +15,7 @@ import pytest
from . import onpath, server
import fsl.fslinstaller as inst
import fsl.installer.fslinstaller as inst
SUDO = """
......
......@@ -18,7 +18,7 @@ import pytest
from . import onpath, server
import fsl.fslinstaller as inst
import fsl.installer.fslinstaller as inst
def test_identify_plaform():
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment