-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a simple test of when_imagej_starts callback
This test checks that functions registered via when_imagej_starts get called as part of imagej.init.
- Loading branch information
Showing
2 changed files
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
def test_when_imagej_starts(ij): | ||
""" | ||
The ImageJ2 gateway test fixture registers a callback function via | ||
when_imagej_starts, which injects a small piece of data into the gateway | ||
object. We check for that data here to make sure the callback happened. | ||
""" | ||
assert "success" == getattr(ij, "_when_imagej_starts_result", None) |