Example #1
0
    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)
Example #3
0
 def setUp(self):
     """Set up the payload module."""
     self.payload_module = PayloadModule()
     self.payload_interface = PayloadInterface(self.payload_module)
Example #4
0
import logging
logging.basicConfig(level=logging.DEBUG)

from pyanaconda.modules.payload.payload import PayloadModule

payload_module = PayloadModule()
payload_module.run()
Example #5
0
from pyanaconda.modules.common import init
init()

from pyanaconda.modules.payload.payload import PayloadModule
payload_module = PayloadModule()
payload_module.run()
Example #6
0
 def setup_payload(self):
     """Create main payload module and its interface."""
     self.payload_module = PayloadModule()
     self.payload_interface = PayloadInterface(self.payload_module)