Пример #1
0
def test_no_input_file():
    sys.argv = [""]
    with pytest.raises(SystemExit):
        cli()
Пример #2
0
def test_dump_ebcidc(temp_dir, temp_segy, ebc):
    # test_file = temp_dir / "ebcidc_dump.txt"
    sys.argv = ["", ebc, str(temp_segy)]
    with pytest.raises(SystemExit):
        cli()
Пример #3
0
def test_help(help_arg):
    sys.argv = ["", help_arg]
    with pytest.raises(SystemExit):
        cli()
Пример #4
0
def test_version():
    sys.argv = ["", "-v"]
    with pytest.raises(SystemExit):
        cli()