コード例 #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
コード例 #2
0
    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)
コード例 #3
0
 def setUp(self):
     """Set up the payload module."""
     self.payload_module = PayloadModule()
     self.payload_interface = PayloadInterface(self.payload_module)
コード例 #4
0
ファイル: __main__.py プロジェクト: sanjitchak/anaconda
import logging
logging.basicConfig(level=logging.DEBUG)

from pyanaconda.modules.payload.payload import PayloadModule

payload_module = PayloadModule()
payload_module.run()
コード例 #5
0
ファイル: __main__.py プロジェクト: rvykydal/anaconda
from pyanaconda.modules.common import init
init()

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