def setup_payload(self): self.payload_module = PayloadModule() self.payload_interface = PayloadInterface(self.payload_module) # avoid publishing self.publish_mock = Mock() self.payload_module._publish_handler = self.publish_mock
def setUp(self): """Set up the payload module.""" # Set up the security module. self.payload_module = PayloadModule() self.payload_interface = PayloadInterface(self.payload_module) self.package_module = self.payload_module._payload_handler._packages_handler self.package_interface = PackagesHandlerInterface(self.package_module) self.callback = Mock() self.package_interface.PropertiesChanged.connect(self.callback)
def setUp(self): """Set up the payload module.""" self.payload_module = PayloadModule() self.payload_interface = PayloadInterface(self.payload_module)
import logging logging.basicConfig(level=logging.DEBUG) from pyanaconda.modules.payload.payload import PayloadModule payload_module = PayloadModule() payload_module.run()
from pyanaconda.modules.common import init init() from pyanaconda.modules.payload.payload import PayloadModule payload_module = PayloadModule() payload_module.run()
def setup_payload(self): """Create main payload module and its interface.""" self.payload_module = PayloadModule() self.payload_interface = PayloadInterface(self.payload_module)