From 4e570d601c23b1bc32d4537c5f64b9743f1af6a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 15 Mar 2022 10:46:58 +0100 Subject: [PATCH] Manager: fix tests for recent change from `filepath` to `blendfile` setting 4196460c29a607e1d3d2d052bf2bf546d5c05616 changed the name of the job setting used to communicate the input blend file path, but the tests weren't updated for this. --- internal/manager/job_compilers/job_compilers_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/manager/job_compilers/job_compilers_test.go b/internal/manager/job_compilers/job_compilers_test.go index dac4095b..99f8ae32 100644 --- a/internal/manager/job_compilers/job_compilers_test.go +++ b/internal/manager/job_compilers/job_compilers_test.go @@ -19,9 +19,9 @@ func exampleSubmittedJob() api.SubmittedJob { settings := api.JobSettings{ AdditionalProperties: map[string]interface{}{ "blender_cmd": "{blender}", + "blendfile": "/render/sf/jobs/scene123.blend", "chunk_size": 3, "extract_audio": true, - "filepath": "/render/sf/jobs/scene123.blend", "format": "PNG", "fps": 24, "frames": "1-10", @@ -95,7 +95,7 @@ func TestSimpleBlenderRenderHappy(t *testing.T) { assert.Equal(t, "blender-render", t0.Commands[0].Name) assert.EqualValues(t, AuthoredCommandParameters{ "exe": "{blender}", - "blendfile": settings["filepath"].(string), + "blendfile": settings["blendfile"].(string), "args": expectCliArgs, "argsBefore": make([]interface{}, 0), }, t0.Commands[0].Parameters) @@ -142,7 +142,7 @@ func TestSimpleBlenderRenderWindowsPaths(t *testing.T) { sj := exampleSubmittedJob() // Adjust the job to get paths in Windows notation. - sj.Settings.AdditionalProperties["filepath"] = "R:\\sf\\jobs\\scene123.blend" + sj.Settings.AdditionalProperties["blendfile"] = "R:\\sf\\jobs\\scene123.blend" sj.Settings.AdditionalProperties["render_output"] = "R:\\sprites\\farm_output\\promo\\square_ellie\\square_ellie.lighting_light_breakdown2\\######" aj, err := s.Compile(ctx, sj)