Skip to content

Commit 8589c90

Browse files
committed
try windows
1 parent 49c59f1 commit 8589c90

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

lumen/tests/ai/test_export.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,13 @@ def test_format_output_pipeline(source):
126126

127127
cells = format_output(msg)
128128
cells[0].pop("id")
129-
129+
uri = source.uri
130+
if os.name == "nt":
131+
uri = uri.replace("\\", "\\\\")
130132
expected_source = (
131133
f"pipeline = lm.Pipeline.from_spec({{\n"
132134
f' "source": {{\n'
133-
f' "uri": "{source.uri}",\n'
135+
f' "uri": "{uri}",\n'
134136
f' "type": "intake"\n'
135137
f" }},\n"
136138
f' "table": "test"\n'
@@ -156,6 +158,9 @@ def test_format_output_view(source):
156158

157159
cells = format_output(msg)
158160
cells[0].pop("id")
161+
uri = source.uri
162+
if os.name == "nt":
163+
uri = uri.replace("\\", "\\\\")
159164
assert cells == [
160165
{
161166
"cell_type": "code",
@@ -165,7 +170,7 @@ def test_format_output_view(source):
165170
"source": "view = lm.View.from_spec({\n"
166171
' "pipeline": {\n'
167172
' "source": {\n'
168-
f' "uri": "{source.uri}",\n'
173+
f' "uri": "{uri}",\n'
169174
' "type": "intake"\n'
170175
" },\n"
171176
' "table": "test"\n'

0 commit comments

Comments
 (0)