зеркало из https://github.com/openwpm/OpenWPM.git
Removed unneccessary List unpacking (#803)
* Fixes #800, Removed unneccessary List unpacking * Removed unneccesary comments
This commit is contained in:
Родитель
53e4516930
Коммит
01f3993285
|
@ -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"
|
||||
|
|
Загрузка…
Ссылка в новой задаче