Removed unneccessary List unpacking (#803)

* Fixes #800, Removed unneccessary List unpacking

* Removed unneccesary comments
This commit is contained in:
Nisan Abeywickrama 2020-11-19 19:44:23 +05:30 коммит произвёл GitHub
Родитель 53e4516930
Коммит 01f3993285
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -25,12 +25,12 @@ class TestCustomFunctionCommand(OpenWPMTest):
manager = TaskManager.TaskManager(manager_params, browser_params)
manager.get("http://website.invalid")
manager.close()
# I couldn't figure out how to just get a the get_command
# Because the type has too many quotes
_, get_command = db_utils.query_db(
get_command = db_utils.query_db(
manager_params["db"],
"SELECT command_status, error " "FROM crawl_history ",
"SELECT command_status, error FROM crawl_history WHERE command = \"<class 'OpenWPM.openwpm.Commands.Types.GetCommand'>\"",
as_tuple=True,
)
)[0]
assert get_command[0] == "neterror"
assert get_command[1] == "dnsNotFound"