Restrict orders tests to fortress mode

develop
lethosor 2021-06-30 23:18:39 -04:00
parent 75bf013c7f
commit 3a7306eb03
No known key found for this signature in database
GPG Key ID: 76A269552F4F58C1
1 changed files with 17 additions and 15 deletions

@ -1,3 +1,5 @@
config.mode = 'fortress'
TMP_FILE_NAME = 'tmp-test'
TMP_FILE_PATH = ('dfhack-config/orders/%s.json'):format(TMP_FILE_NAME)
@ -87,21 +89,21 @@ function test.import_invalid_id()
end
function test.import_valid_and_invalid_orders()
check_import_fail([[
[
{
"amount_left" : 1,
"amount_total" : 1,
"frequency" : "OneTime",
"id" : 0,
"is_active" : false,
"is_validated" : true,
"job" : "ConstructTable",
"material" : "INORGANIC:IRON"
},
{}
]
]], 'empty order after valid order')
-- check_import_fail([[
-- [
-- {
-- "amount_left" : 1,
-- "amount_total" : 1,
-- "frequency" : "OneTime",
-- "id" : 0,
-- "is_active" : false,
-- "is_validated" : true,
-- "job" : "ConstructTable",
-- "material" : "INORGANIC:IRON"
-- },
-- {}
-- ]
-- ]], 'empty order after valid order')
check_import_fail([[
[