Skip to content

Commit

Permalink
test: Fix condition test (make more strict).
Browse files Browse the repository at this point in the history
  • Loading branch information
b-butler authored Oct 27, 2023
1 parent 1843d91 commit 2ef3f04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -2538,9 +2538,9 @@ class A(FlowProject):
def op(job):
pass

assert len(A._OPERATION_HOOK_REGISTRY[op]["on_start"])
assert len(A._OPERATION_HOOK_REGISTRY[op]["on_success"])
assert len(A._OPERATION_HOOK_REGISTRY[op]["on_exception"])
assert len(A._OPERATION_HOOK_REGISTRY[op]["on_start"]) == 1
assert len(A._OPERATION_HOOK_REGISTRY[op]["on_success"]) == 1
assert len(A._OPERATION_HOOK_REGISTRY[op]["on_exception"]) == 1

@track.install_operation_hooks(A)
@A.operation
Expand Down

0 comments on commit 2ef3f04

Please sign in to comment.