Skip to content

Commit

Permalink
Update opts_tests.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Aug 13, 2024
1 parent b4a8011 commit f147fb4
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions tests/opts_tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest
import os
from qsirecon.cli.run import set_freesurfer_license, validate_bids, get_parser
from qsirecon.cli.run import set_freesurfer_license, get_parser

base_args = "bids out participant --output_resolution 2.3"

Expand All @@ -24,15 +24,6 @@ def test_required():
assert pa_fail.value.code == 2


def test_required_recononly(monkeypatch):
# dont need output_resolution if we have recon_only
base_args = "bids out participant --recon_only"
args = base_args.split(' ')
# sys.argv used to set if output-res required
monkeypatch.setattr('qsirecon.cli.run.sys.argv', args)
get_parser().parse_args(args)


def test_set_freesurfer_license(tmpdir):
"""test setting, precedence, and error if DNE"""
# create temp file
Expand Down

0 comments on commit f147fb4

Please sign in to comment.