Skip to content

Commit ab51dfa

Browse files
committed
Fix pre-existing lint errors in test file and added a blank mistakenly removed in worker/_workflow_instance.py
1 parent 218ef5e commit ab51dfa

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/worker/test_workflow.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7744,7 +7744,7 @@ async def test_activity_benign_error_not_logged(client: Client):
77447744
assert isinstance(err.value.cause.cause, ApplicationError)
77457745
# Assert the expected category
77467746
assert err.value.cause.cause.category == ApplicationErrorCategory.BENIGN
7747-
assert capturer.find_log("Completing activity as failed") == None
7747+
assert capturer.find_log("Completing activity as failed") is None
77487748

77497749
# Run with non-benign error
77507750
with pytest.raises(WorkflowFailureError) as err:
@@ -7762,7 +7762,7 @@ async def test_activity_benign_error_not_logged(client: Client):
77627762
assert (
77637763
err.value.cause.cause.category == ApplicationErrorCategory.UNSPECIFIED
77647764
)
7765-
assert capturer.find_log("Completing activity as failed") != None
7765+
assert capturer.find_log("Completing activity as failed") is not None
77667766

77677767

77687768
async def test_workflow_missing_local_activity(client: Client):
@@ -8040,8 +8040,8 @@ async def check_heartbeat_details_exist(
80408040

80418041
# Check workflow complete
80428042
result = await handle.result()
8043-
assert result[0] == None
8044-
assert result[1] == None
8043+
assert result[0] is None
8044+
assert result[1] is None
80458045

80468046

80478047
@activity.defn

0 commit comments

Comments
 (0)