Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow SlideData to use existing h5path files #337

Open
wants to merge 22 commits into
base: load-data-in-workers
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change test to not expect KeyError
  • Loading branch information
tddough98 committed Oct 20, 2022
commit bd3b1540b1ba269b302997794098dd8d0abc66c5
7 changes: 2 additions & 5 deletions tests/core_tests/test_tiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,16 +148,13 @@ def test_add_get(emptytiles, tileHE, incorrect_input, incorrect_input2):


@pytest.mark.parametrize(
"incorrect_input", ["string", None, True, 5, [5, 4, 3], {"dict": "testing"}]
"incorrect_input", [None, True, 5, [5, 4, 3], {"dict": "testing"}]
)
def test_remove(emptytiles, tileHE, incorrect_input):
tiles = emptytiles
tiles.add(tileHE)
tiles.remove((1, 3))
with pytest.raises(Exception):
triggerexception = tiles[(1, 3)]
with pytest.raises(KeyError):
tiles.remove((1, 3))
tiles.remove((1, 3))
# incorrect input
with pytest.raises(KeyError):
tiles.remove(incorrect_input)