Skip to content

Commit

Permalink
another attempt to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexott committed Jan 29, 2024
1 parent 27eb9b3 commit dc3c33d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions exporter/importables_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,7 @@ func TestNotebookGeneration(t *testing.T) {
Response: workspace.ExportPath{
Content: "YWJj",
},
ReuseRequest: true,
},
}, "notebooks", false, func(ic *importContext) {
ic.notebooksFormat = "SOURCE"
Expand Down Expand Up @@ -1068,6 +1069,7 @@ func TestNotebookGenerationJupyter(t *testing.T) {
Response: workspace.ExportPath{
Content: "YWJj",
},
ReuseRequest: true,
},
}, "notebooks", false, func(ic *importContext) {
ic.notebooksFormat = "JUPYTER"
Expand Down Expand Up @@ -1113,6 +1115,7 @@ func TestNotebookGenerationBadCharacters(t *testing.T) {
ObjectType: "DIRECTORY",
Path: "/Fir\"st\\",
},
ReuseRequest: true,
},
{
Method: "GET",
Expand All @@ -1123,13 +1126,15 @@ func TestNotebookGenerationBadCharacters(t *testing.T) {
Path: "/Fir\"st\\/Second",
Language: "PYTHON",
},
ReuseRequest: true,
},
{
Method: "GET",
Resource: "/api/2.0/workspace/export?format=SOURCE&path=%2FFir%22st%5C%2FSecond",
Response: workspace.ExportPath{
Content: "YWJj",
},
ReuseRequest: true,
},
}, "notebooks,directories", true, func(ic *importContext) {
ic.notebooksFormat = "SOURCE"
Expand Down

0 comments on commit dc3c33d

Please sign in to comment.