Skip to content

Commit 7753898

Browse files
committed
🧪 Fix Windows Config test
Note - documentation should that paths must be escaped in Simvue Config file
1 parent 64c7af3 commit 7753898

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

‎tests/conftest.py‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
import contextlib
22
from _pytest import monkeypatch
3-
from numpy import fix
43
import pytest
5-
import datetime
64
import pytest_mock
75
import typing
86
import uuid
9-
import time
107
import tempfile
118
import os
129
import json
@@ -18,9 +15,7 @@
1815
import simvue.run as sv_run
1916
import simvue.api.objects as sv_api_obj
2017
import simvue.config.user as sv_cfg
21-
import simvue.utilities
2218

23-
from simvue.api.objects.artifact import Artifact
2419
from simvue.exception import ObjectNotFoundError
2520

2621
MAX_BUFFER_SIZE: int = 10

‎tests/functional/test_config.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,14 @@ def test_config_setup(
6969
with open((_ppt_file := pathlib.Path(temp_d).joinpath("pyproject.toml")), "w") as out_f:
7070
out_f.write(_lines_ppt)
7171
with open(_config_file := pathlib.Path(temp_d).joinpath("simvue.toml"), "w") as out_f:
72+
_windows_safe = temp_d.replace("\\", "\\\\")
7273
_lines: str = f"""
7374
[server]
7475
url = "{_url}"
7576
token = "{_token}"
7677
7778
[offline]
78-
cache = "{temp_d}"
79+
cache = "{_windows_safe}"
7980
"""
8081

8182
if use_file == "extended":

0 commit comments

Comments
 (0)