remove unit tests for removed function

develop
myk002 2021-05-15 05:59:37 -07:00
parent 256ca13668
commit 95d97b929e
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 0 additions and 39 deletions

@ -120,45 +120,6 @@ function test.parse_commandline()
'zero depth')
end
function test.do_gui_no_arg()
local mock_print, mock_timeout, mock_run_script =
mock.func(), mock.func(), mock.func()
mock.patch(
{
{b, 'print', mock_print},
{dfhack, 'timeout', mock_timeout},
{dfhack, 'run_script', mock_run_script},
},
function()
b.do_gui('gui')
expect.eq(1, mock_print.call_count)
expect.eq(1, mock_timeout.call_count)
mock_timeout.call_args[1][3]()
expect.eq(1, mock_run_script.call_count)
expect.table_eq({'gui/blueprint'}, mock_run_script.call_args[1])
end)
end
function test.do_gui_with_args()
local mock_print, mock_timeout, mock_run_script =
mock.func(), mock.func(), mock.func()
mock.patch(
{
{b, 'print', mock_print},
{dfhack, 'timeout', mock_timeout},
{dfhack, 'run_script', mock_run_script},
},
function()
b.do_gui('gui', 'arg1', 'arg2', 'arg3')
expect.eq(1, mock_print.call_count)
expect.eq(1, mock_timeout.call_count)
mock_timeout.call_args[1][3]()
expect.eq(1, mock_run_script.call_count)
expect.table_eq({'gui/blueprint', 'arg1', 'arg2', 'arg3'},
mock_run_script.call_args[1])
end)
end
function test.do_blueprint_positive_dims()
local mock_run_command = mock.func()
mock.patch(dfhack, 'run_command', mock_run_command,