From c327507e73aa7d0ecc9e846572e3d04b193c4d7a Mon Sep 17 00:00:00 2001 From: Peter Van Dyken Date: Fri, 15 Sep 2023 15:29:48 -0400 Subject: [PATCH] Fix 'bids_dirs' typo in tests --- snakebids/tests/test_validate_plugin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/snakebids/tests/test_validate_plugin.py b/snakebids/tests/test_validate_plugin.py index 5c13e743..b469f1b2 100644 --- a/snakebids/tests/test_validate_plugin.py +++ b/snakebids/tests/test_validate_plugin.py @@ -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() @@ -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() @@ -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 @@ -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