Beispiel #1
0
def test_no_input_file():
    sys.argv = [""]
    with pytest.raises(SystemExit):
        cli()
Beispiel #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()
Beispiel #3
0
def test_help(help_arg):
    sys.argv = ["", help_arg]
    with pytest.raises(SystemExit):
        cli()
Beispiel #4
0
def test_version():
    sys.argv = ["", "-v"]
    with pytest.raises(SystemExit):
        cli()