6 from DQUtils
import oracle
7 from DQUtils.sugar
import RunLumi, RANGEIOV_VAL
10 oracle.fetch_recent_runs()
13 lastruns =
set(oracle.fetch_last_n_atlas_runs(10))
14 assert len(lastruns) == 10
15 minrun, maxrun =
min(lastruns),
max(lastruns)
16 selectedruns = {_[1]
for _
in oracle.fetch_runs_since(minrun-1)}
17 assert selectedruns == lastruns, f
'{selectedruns}, {lastruns}'
18 selectedruns =
set(oracle.atlas_runs_between(minrun, maxrun))
19 assert lastruns == selectedruns
21 for _
in range(minrun, maxrun+1)]
22 assert oracle.filter_atlas_runs(fakeiovs).runs == lastruns
24 if __name__ ==
'__main__':