fix parse_gui_commandline test when run on title

develop
myk002 2021-07-05 16:01:23 -07:00
parent 17d4be14f3
commit 5e0672902c
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 4 additions and 1 deletions

@ -19,7 +19,10 @@ function test.parse_gui_commandline()
expect.table_eq({help=true}, opts) expect.table_eq({help=true}, opts)
opts = {} opts = {}
mock.patch(dfhack.maps, 'isValidTilePos', mock.func(true),
function()
b.parse_gui_commandline(opts, {'--cursor=1,2,3'}) 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}}, expect.table_eq({auto_phase=true, name='blueprint', start={x=1,y=2,z=3}},
opts) opts)