File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
77687768async 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
You can’t perform that action at this time.
0 commit comments