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)
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)
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()
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']
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']