Ejemplo n.º 1
0
    def setUp(self):
        super().setUp()
        from polycommon.events import auditor_subscriptions  # noqa
        from coredb.executor import subscriptions  # noqa

        auditor.validate_and_setup()
        self.user = MagicMock(id=1)
        self.owner = MagicMock(id=1, name="owner")
        self.project = MagicMock(id=1, owner=self.owner, name="project")
Ejemplo n.º 2
0
    def ready(self):
        import coredb.signals.runs  # noqa

        from coredb import executor, operations
        from polycommon import conf
        from polycommon import auditor

        conf.validate_and_setup()
        operations.validate_and_setup()
        executor.validate_and_setup()
        auditor.validate_and_setup()

        import polycommon.options.conf_subscriptions  # noqa
        from polycommon.events import auditor_subscriptions  # noqa
Ejemplo n.º 3
0
    def ready(self):
        from polycommon import conf
        from polycommon import auditor
        from coredb import executor, operations
        from polycommon import query

        conf.validate_and_setup()
        query.validate_and_setup()
        operations.validate_and_setup()
        executor.validate_and_setup()
        auditor.validate_and_setup()

        import coredb.signals.runs  # noqa

        import polycommon.options.conf_subscriptions  # noqa
        from polycommon.events import auditor_subscriptions  # noqa
        from coredb.administration import register  # noqa
Ejemplo n.º 4
0
 def setUp(self):
     super().setUp()
     auditor.validate_and_setup()
     # load subscriptions
     from polycommon.events import auditor_subscriptions  # noqa