Skip to content

Commit

Permalink
Fix 'bids_dirs' typo in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pvandyken committed Sep 15, 2023
1 parent bd5396b commit 1fa5bcb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions snakebids/tests/test_validate_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_validation_successful(self, app: SnakeBidsApp, mocker: MockerFixture):
# Test successful validation
mocker.patch("subprocess.check_call", return_value=0)

app.config["bids_dirs"] = "path/to/bids/dir"
app.config["bids_dir"] = "path/to/bids/dir"
app.config["plugins.validator.skip"] = False

validator = BidsValidator()
Expand All @@ -48,7 +48,7 @@ def test_missing_bids_validator(
# Test fall back to Pybids validation
mocker.patch("subprocess.check_call", side_effect=FileNotFoundError)

app.config["bids_dirs"] = "path/to/bids/dir"
app.config["bids_dir"] = "path/to/bids/dir"
app.config["plugins.validator.skip"] = False

validator = BidsValidator()
Expand All @@ -68,7 +68,7 @@ def test_raise_validation_error(self, app: SnakeBidsApp, mocker: MockerFixture):
"subprocess.check_call", side_effect=subprocess.CalledProcessError(1, "")
)

app.config["bids_dirs"] = "path/to/bids/dir"
app.config["bids_dir"] = "path/to/bids/dir"
app.config["plugins.validator.skip"] = False

# Check error raised
Expand All @@ -85,7 +85,7 @@ def test_ignore_validation_error(self, app: SnakeBidsApp, mocker: MockerFixture)
"subprocess.check_call", side_effect=subprocess.CalledProcessError(1, "")
)

app.config["bids_dirs"] = "path/to/bids/dir"
app.config["bids_dir"] = "path/to/bids/dir"
app.config["plugins.validator.skip"] = False

# Check if error is skipped on invalid
Expand Down

0 comments on commit 1fa5bcb

Please sign in to comment.