File: test_lsxfel.py

package info (click to toggle)
extra-data 1.20.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 952 kB
  • sloc: python: 10,421; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 391 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from extra_data import lsxfel


def test_lsxfel_file(mock_lpd_data, capsys):
    lsxfel.summarise_file(mock_lpd_data)
    out, err = capsys.readouterr()
    assert "480 trains, 1 source" in out


def test_lsxfel_run(mock_fxe_raw_run, capsys):
    lsxfel.summarise_run(mock_fxe_raw_run)
    out, err = capsys.readouterr()

    assert "480 trains" in out
    assert "16 detector files" in out