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.
This commit is contained in:
parent
04ac003ed6
commit
4e570d601c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user