Skip to content

Commit

Permalink
[dagster-openai] Fix not called assertion in tests for Python 3.12 (#…
Browse files Browse the repository at this point in the history
…26012)

## Summary & Motivation

`mock.not_called` is deprecated in Python 3.12, using `not mock.called`
instead.

## How I Tested These Changes

BK, local tests with Python 3.12
  • Loading branch information
maximearmstrong authored Nov 19, 2024
1 parent 8abf993 commit 5a4f808
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def openai_op(openai_resource: OpenAIResource):
)

assert mock_client.called
assert mock_wrapper.not_called
assert not mock_wrapper.called

result = wrap_op_in_graph_and_execute(
openai_op,
Expand Down

0 comments on commit 5a4f808

Please sign in to comment.