Skip to content

Commit

Permalink
Use None as the getattr default, not True
Browse files Browse the repository at this point in the history
The default here should be None, not True, otherwise
this test does not actually test for the `_testing`
attribute value.
  • Loading branch information
elevans committed Oct 14, 2024
1 parent 972592d commit b2ce4cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ def test_when_imagej_starts(ij):
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 True is getattr(ij, "_testing", True)
assert True is getattr(ij, "_testing", None)

0 comments on commit b2ce4cb

Please sign in to comment.