Beispiel #1
0
def test_ms_data_text(capsys):
    args = testfile, '-s', 'Proxeon_EASY-nLC'
    main(args)
    captured = capsys.readouterr()
    assert 'Sample' in captured.out

    args = testfile, '-s', 'Proxeon_EASY-nLC', '--to', 'text'
    main(args)
    captured = capsys.readouterr()
    assert 'Sample' in captured.out
Beispiel #2
0
def test_thermo_data_text(capsys):
    args = testfile, '-s', 'Thermo Exactive'
    main(args)
    captured = capsys.readouterr()
    assert 'Method' in captured.out

    args = testfile, '-s', 'Thermo Exactive', '--to', 'text'
    main(args)
    captured = capsys.readouterr()
    assert 'Method' in captured.out
Beispiel #3
0
def test_ms_data_xml(capsys):
    args = testfile, '-s', 'Proxeon_EASY-nLC', '--to', 'xml'
    main(args)
    captured = capsys.readouterr()
    assert captured.out[:5] == '<?xml'
    assert captured.out.strip()[-1] == '>'
Beispiel #4
0
def test_parser_accepts_file(capsys):
    args = (testfile, )
    main(args)
    captured = capsys.readouterr()
    assert 'Proxeon' in captured.out
    assert 'Thermo Exactive' in captured.out
Beispiel #5
0
def test_ms_data_json(capsys):
    args = testfile, '-s', 'Proxeon_EASY-nLC', '--to', 'json'
    main(args)
    captured = capsys.readouterr()
    assert captured.out[0] == '{'
    assert captured.out.strip()[-1] == '}'
Beispiel #6
0
def test_thermo_data_xml(capsys):
    args = testfile, '-s', 'Thermo Exactive', '--to', 'xml'
    main(args)
    captured = capsys.readouterr()
    assert captured.out[:5] == '<?xml'
    assert captured.out.strip()[-1] == '>'
Beispiel #7
0
def test_thermo_data_json(capsys):
    args = testfile, '-s', 'Thermo Exactive', '--to', 'json'
    main(args)
    captured = capsys.readouterr()
    assert captured.out[0] == '{'
    assert captured.out.strip()[-1] == '}'