Skip to content

Add test for cursor of transformations #123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 4, 2017

Conversation

YomesInc
Copy link
Contributor

No description provided.

@unittest.skipUnless(cloudinary.config().api_secret, "requires api_key/api_secret")
def test12a_transformations_cursor(self):
""" should allow listing transformations with cursor """
result = api.transformations(max_results=1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing the wrong API. Should test api.transformation(t)

self.assertNotEqual(result2["transformations"][0]["name"],
result["transformations"][0]["name"])
mocker.return_value = MOCK_RESPONSE
api.transformation('c_scale,w_100', next_cursor='2412515')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You dropped the max_results parameter...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's because we started using the mock for the test. max_results is irrelevant now.

@tocker tocker force-pushed the transformations_cursor branch from 440cadd to 994859e Compare December 4, 2017 12:12
@tocker tocker merged commit 880952e into cloudinary:master Dec 4, 2017
@YomesInc YomesInc deleted the transformations_cursor branch December 13, 2017 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants