-
I'd like to run some tests in Pytest to ensure fast testing for cursor. Is there a way to configure my testing library to get the same strings back for cursor results every time? Or perhaps an alternative way to test? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
uriyyo
Jun 20, 2024
Replies: 1 comment
-
Hi @zromick, You can try to mock Here is example - https://docs.python.org/3/library/unittest.mock.html#unittest.mock.Mock.return_value |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
zromick
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @zromick,
You can try to mock
paginate
function that you are using.Here is example - https://docs.python.org/3/library/unittest.mock.html#unittest.mock.Mock.return_value