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

        executor.validate_and_setup()
        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")
예제 #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
예제 #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
 def setUp(self):
     super().setUp()
     executor.validate_and_setup()
     # load subscriptions
     from coredb.executor import subscriptions  # noqa