예제 #1
0
def test():
    "Local test function"
    # TODO: init  DAS:   Reading DAS configuration from ...
    print "setUp: getting dbs manager to access current datasets " "(and fetching them if needed)"

    # make sure DBS dataset cache is initialized
    initialize_global_dbs_mngr(update_required=False)
    import doctest

    doctest.testmod(verbose=True)
예제 #2
0
def test():
    """ Local test function """
    # TODO: init  DAS:   Reading DAS configuration from ...
    print('setUp: getting dbs manager to access current datasets ' \
          '(and fetching them if needed)')

    # make sure DBS dataset cache is initialized
    initialize_global_dbs_mngr(update_required=False)
    import doctest
    doctest.testmod(verbose=True)
예제 #3
0
    def setUp(self):
        """
        sets up dbs manager instance
        """

        print('\nsetUp: getting dbs manager to access current datasets '\
              '(and fetching them if needed)')
        # set up only once
        if not self.global_dbs_mngr:
            self.global_dbs_mngr = initialize_global_dbs_mngr()
        self.inst = get_global_dbs_inst()
예제 #4
0
    def setUp(self):
        """
        sets up dbs manager instance
        """

        print('\nsetUp: getting dbs manager to access current datasets '\
              '(and fetching them if needed)')
        # set up only once
        if not self.global_dbs_mngr:
            self.global_dbs_mngr = initialize_global_dbs_mngr()
        self.inst = get_global_dbs_inst()
예제 #5
0
파일: das_kwdsearch_t.py 프로젝트: ktf/DAS
    def __init__(cls, name, bases, d):
        type.__init__(cls, name, bases, d)

        # set up only once
        if hasattr(cls, 'global_dbs_inst') and cls.global_dbs_inst:
            return

        print 'setUp in metaclass: getting dbs manager ' \
              '(and fetching datasets if needed)'
        cls.global_dbs_mngr = initialize_global_dbs_mngr(update_required=False)
        cls.global_dbs_inst = get_global_dbs_inst()
        cls.kws = KeywordSearch(dascore=DASCore(multitask=False))
        dasconfig = das_readconfig()
        cls.timeout = dasconfig['keyword_search']['timeout']
예제 #6
0
    def __init__(cls, name, bases, d):
        type.__init__(cls, name, bases, d)

        # set up only once
        if hasattr(cls, 'global_dbs_inst') and cls.global_dbs_inst:
            return

        print('setUp in metaclass: getting dbs manager ' \
              '(and fetching datasets if needed)')
        cls.global_dbs_mngr = initialize_global_dbs_mngr(update_required=False)
        cls.global_dbs_inst = get_global_dbs_inst()
        cls.kws = KeywordSearch(dascore=DASCore(multitask=False))
        dasconfig = das_readconfig()
        cls.timeout = dasconfig['keyword_search']['timeout']