• Announcement: Lua.org now officially recommends this forum as a meeting place for the Lua community

ubus

  1. devkapilbansal

    Mock ubus while testing

    Greetings everyone I want to test some files using ubus in my local machine(ubuntu) The script uses:- ubus_lib = require('ubus') ubus = ubus_lib.connect() data = ubus:call(something) This script is loaded in another module, ubus was giving nil, that's why I try to mock it using package.loaded...
Top