def test_xenonnt_online_rucio_local(): st = xenonnt_online(include_rucio_local=True, _rucio_local_path='./test') for sf in st.storage: if 'RucioLocalFrontend' == sf.__class__.__name__: break else: raise ValueError(f"Online monitor not in {st.storage}")
def test_xenonnt_online_with_online_frontend(): st = xenonnt_online(include_online_monitor=True) for sf in st.storage: if 'OnlineMonitor' == sf.__class__.__name__: break else: raise ValueError(f"Online monitor not in {st.storage}")
def test_nt_is_nt_online(): # Test that nT and nT online are the same st_online = xenonnt_online(_database_init=False) st = xenonnt(_database_init=False) for plugin in st._plugin_class_registry.keys(): print(f'Checking {plugin}') nt_key = st.key_for('0', plugin) nt_online_key = st_online.key_for('0', plugin) assert str(nt_key) == str(nt_online_key)
def test_xenonnt_online(): st = xenonnt_online(_database_init=False) st.search_field('time')