Add test for invalid job types in workflow's job_outputs

develop
lethosor 2020-12-15 21:36:57 -05:00
parent bd92d8f27a
commit d437cfe649
No known key found for this signature in database
GPG Key ID: 76A269552F4F58C1
2 changed files with 13 additions and 0 deletions

@ -355,4 +355,10 @@ function listWeakenedConstraints(outputs)
return variants return variants
end end
if dfhack.internal.IN_TEST then
test_data = {
job_outputs = job_outputs,
}
end
return _ENV return _ENV

@ -0,0 +1,7 @@
local workflow = require('plugins.workflow')
function test.job_outputs()
for job_type in pairs(workflow.test_data.job_outputs) do
expect.true_(df.job_type[job_type], "Found unrecognized job type: " .. tostring(job_type))
end
end