ATLAS Offline Software
Loading...
Searching...
No Matches
test_read Namespace Reference

Functions

 test_read ()
 test_fetch ()

Function Documentation

◆ test_fetch()

test_read.test_fetch ( )

Definition at line 21 of file test_read.py.

21def test_fetch():
22 fetch_iovs("DEFECTS", runs=359918)
23 fetch_iovs("COOLOFL_DCS::/LHC/DCS/FILLSTATE", runs=359918)
24 fetch_iovs("COOLOFL_DCS/CONDBR2::/LHC/DCS/FILLSTATE", runs=359918)
25 iovs=fetch_iovs("COOLONL_TRIGGER::/TRIGGER/LUMI/OnlPrefLumi", runs=359918)
26 assert len(iovs) == 729, 'correct number of iovs retrieved'
27 return iovs[:10]
28

◆ test_read()

test_read.test_read ( )
Check if retrieving the Code and Comment field from DetStatusSHIFTOFL-pass1-analysis-2010B changed

Reads some data from the database which is expected not to change.
A problem with this could either indicate a broken API, or a changed database

Definition at line 9 of file test_read.py.

9def test_read():
10 """
11 Check if retrieving the Code and Comment field from DetStatusSHIFTOFL-pass1-analysis-2010B changed
12
13 Reads some data from the database which is expected not to change.
14 A problem with this could either indicate a broken API, or a changed database
15 """
16 tag = "DetStatusDEFECTS-pro22-04"
17 result = fetch_iovs("DEFECTS", what=["present", "recoverable", "user"], tag=tag, runs=359918)
18 return list(result)
19
20@invariant("359918-blobs")