File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -126,11 +126,13 @@ def test_format_output_pipeline(source):
126
126
127
127
cells = format_output (msg )
128
128
cells [0 ].pop ("id" )
129
-
129
+ uri = source .uri
130
+ if os .name == "nt" :
131
+ uri = uri .replace ("\\ " , "\\ \\ " )
130
132
expected_source = (
131
133
f"pipeline = lm.Pipeline.from_spec({{\n "
132
134
f' "source": {{\n '
133
- f' "uri": "{ source . uri } ",\n '
135
+ f' "uri": "{ uri } ",\n '
134
136
f' "type": "intake"\n '
135
137
f" }},\n "
136
138
f' "table": "test"\n '
@@ -156,6 +158,9 @@ def test_format_output_view(source):
156
158
157
159
cells = format_output (msg )
158
160
cells [0 ].pop ("id" )
161
+ uri = source .uri
162
+ if os .name == "nt" :
163
+ uri = uri .replace ("\\ " , "\\ \\ " )
159
164
assert cells == [
160
165
{
161
166
"cell_type" : "code" ,
@@ -165,7 +170,7 @@ def test_format_output_view(source):
165
170
"source" : "view = lm.View.from_spec({\n "
166
171
' "pipeline": {\n '
167
172
' "source": {\n '
168
- f' "uri": "{ source . uri } ",\n '
173
+ f' "uri": "{ uri } ",\n '
169
174
' "type": "intake"\n '
170
175
" },\n "
171
176
' "table": "test"\n '
You can’t perform that action at this time.
0 commit comments