Skip to content
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

fix key error if meta.total_count is not present #187

Merged
merged 8 commits into from
Jun 22, 2021
Merged

Conversation

snopoke
Copy link
Contributor

@snopoke snopoke commented Jun 22, 2021

The new messaging-events API does not include a meta.total_count field.

First commit is the fix - the rest are a minor refactor.

@@ -154,7 +160,7 @@ def test_repeat_limit(self):
self._test_iterate(FakeRepeatedDateCaseSession(), get_paginator('case', 2), 2, [1, 2])

def test_message_log(self):
self._test_iterate(FakMessageLogSession(), get_paginator('messaging-event', 2), 2, [1, 2])
self._test_iterate(FakMessageLogSession(), get_paginator('messaging-event', 2), 3, [1, 2, 3])
Copy link
Contributor

Choose a reason for hiding this comment

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

is this a spelling mistake? I know this is what the class is called, but it reads a bit funny.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👀 189865f

@snopoke snopoke merged commit 5b6030c into master Jun 22, 2021
@snopoke snopoke deleted the sk/fix-key-error branch June 22, 2021 14:07
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.

None yet

4 participants