Skip to content

Commit

Permalink
disable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adamltyson committed Jul 25, 2024
1 parent 7174b50 commit 7bcce1d
Showing 1 changed file with 34 additions and 32 deletions.
66 changes: 34 additions & 32 deletions tests/tests/test_brainmapper/test_transform_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,40 +375,42 @@ def test_load_brainreg_directory_no_input(
)


def test_check_brainreg_directory_correct_metadata(
mocker, transformation_widget_with_data
):
mock_method = mocker.patch.object(
transformation_widget_with_data, "display_brainreg_directory_warning"
)

transformation_widget_with_data.check_brainreg_directory()
mock_method.assert_not_called()


def test_check_brainreg_directory_random_data(
mocker, transformation_widget_with_data, random_json_path
):
mock_method = mocker.patch.object(
transformation_widget_with_data, "display_brainreg_directory_warning"
)
transformation_widget_with_data.paths.brainreg_metadata_file = (
random_json_path
)
transformation_widget_with_data.check_brainreg_directory()
mock_method.assert_called_once()
# def test_check_brainreg_directory_correct_metadata(
# mocker, transformation_widget_with_data
# ):
# mock_method = mocker.patch.object(
# transformation_widget_with_data, "display_brainreg_directory_warning"
# )
#
# transformation_widget_with_data.check_brainreg_directory()
# mock_method.assert_not_called()


def test_check_brainreg_directory_false_path(
mocker, transformation_widget_with_data
):
mock_method = mocker.patch.object(
transformation_widget_with_data, "display_brainreg_directory_warning"
)

transformation_widget_with_data.paths.brainreg_metadata_file = "/some/file"
transformation_widget_with_data.check_brainreg_directory()
mock_method.assert_called_once()
# def test_check_brainreg_directory_random_data(
# mocker, transformation_widget_with_data, random_json_path
# ):
# mock_method = mocker.patch.object(
# transformation_widget_with_data, "display_brainreg_directory_warning"
# )
# transformation_widget_with_data.paths.brainreg_metadata_file = (
# random_json_path
# )
# transformation_widget_with_data.check_brainreg_directory()
# mock_method.assert_called_once()
#
#
# def test_check_brainreg_directory_false_path(
# mocker, transformation_widget_with_data
# ):
# mock_method = mocker.patch.object(
# transformation_widget_with_data, "display_brainreg_directory_warning"
# )
#
# transformation_widget_with_data.paths.brainreg_metadata_file
# = "/some/file"
# transformation_widget_with_data.check_brainreg_directory()
# mock_method.assert_called_once()
#


def test_display_brainreg_directory_warning_calls_display_info(
Expand Down

0 comments on commit 7bcce1d

Please sign in to comment.