tests: Mock `drawin` in the permission unit tests.

This commit is contained in:
Emmanuel Lepage Vallee 2020-01-25 20:10:24 -05:00
parent b350ffcb9c
commit 8a877bd429
1 changed files with 7 additions and 0 deletions

View File

@ -14,6 +14,13 @@ describe("awful.permissions.client_geometry_requests", function()
_G.tag = { _G.tag = {
connect_signal = function() end, connect_signal = function() end,
} }
_G.awesome = {
connect_signal = function() end,
}
_G.drawin = {
set_index_miss_handler = function() end,
set_newindex_miss_handler = function() end
}
local permissions = require("awful.permissions") local permissions = require("awful.permissions")