Skip to content
Snippets Groups Projects
Commit ce71653e authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

Test configuration can handle Windows paths encoded in /c/dir/to format e.g. by GitBash

parent 5851da53
No related branches found
No related tags found
No related merge requests found
......@@ -77,9 +77,21 @@ def setup_test_data():
:return:
meta (dict) of test data and paths
"""
def _winpath(f):
if not isinstance(f, str):
return f
p = f.split('/')
if len(p) > 1:
p[1] = p[1] + ':'
return '\\'.join(p[1:])
else:
return f
# places to look for test data
data_paths = [
os.environ.get('UNITTEST_DATA_ROOT'),
_winpath(os.environ.get('UNITTEST_DATA_ROOT')),
Path.home() / 'model_server' / 'testing',
os.getcwd(),
]
......
......@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "model_server"
license = {file = "LICENSE"}
version = "2024.09.30"
version = "2024.10.01"
authors = [
{ name="Christopher Rhodes", email="christopher.rhodes@embl.de" },
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment