Skip to content

Commit

Permalink
Catch our own warnings in pybidsdb tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pvandyken committed Feb 20, 2024
1 parent e15a2f1 commit 5f5df4b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions snakebids/tests/test_generate_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,14 @@ def test_old_params_passed_on_to_new(
pybids_database_dir: str,
pybids_database_reset: bool,
):
assert (pybids_database_dir, pybids_database_reset) == _normalize_database_args(
None, None, pybids_database_dir, pybids_database_reset
)
with warnings.catch_warnings():
warnings.simplefilter("ignore", category=UserWarning)
assert (
pybids_database_dir,
pybids_database_reset,
) == _normalize_database_args(
None, None, pybids_database_dir, pybids_database_reset
)

@given(
pybidsdb_reset=st.booleans() | st.none(),
Expand Down

0 comments on commit 5f5df4b

Please sign in to comment.