From 5e0672902c212390d70cf7118810061f302006bc Mon Sep 17 00:00:00 2001 From: myk002 Date: Mon, 5 Jul 2021 16:01:23 -0700 Subject: [PATCH] fix parse_gui_commandline test when run on title --- test/plugins/blueprint.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/plugins/blueprint.lua b/test/plugins/blueprint.lua index 939ea8244..2b9e2ad77 100644 --- a/test/plugins/blueprint.lua +++ b/test/plugins/blueprint.lua @@ -19,7 +19,10 @@ function test.parse_gui_commandline() expect.table_eq({help=true}, opts) opts = {} - b.parse_gui_commandline(opts, {'--cursor=1,2,3'}) + mock.patch(dfhack.maps, 'isValidTilePos', mock.func(true), + function() + b.parse_gui_commandline(opts, {'--cursor=1,2,3'}) + end) expect.table_eq({auto_phase=true, name='blueprint', start={x=1,y=2,z=3}}, opts)