ATLAS Offline Software
test_events.py
Go to the documentation of this file.
1 #! /usr/bin/env python
2 
3 # Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
4 
5 from DQUtils import fetch_iovs, process_iovs
6 from DQUtils.tests import invariant
7 
8 @invariant("359918-DetStatusDEFECTS-pro22-04")
10  """
11  Test that processing works
12  """
13  iovs = fetch_iovs("DEFECTS", tag="DetStatusDEFECTS-pro22-04", runs=359918)
14  channels, iovsets = iovs.chans_iovsets
15  processed = [(since, until, states[:])
16  for since, until, states in process_iovs(*iovsets)]
17 
18  return processed
19 
20 if __name__ == '__main__':
python.db.fetch_iovs
def fetch_iovs(folder_name, since=None, until=None, channels=None, tag="", what="all", max_records=-1, with_channel=True, loud=False, database=None, convert_time=False, named_channels=False, selection=None, runs=None, with_time=False, unicode_strings=False)
Definition: DQUtils/python/db.py:67
test_events.test_processing
def test_processing()
Definition: test_events.py:9
RCU::Check::invariant
@ invariant
invariant violation
Definition: Assert.h:73
python.events.process_iovs
def process_iovs(*iovsets)
Definition: events.py:30