Skip to content

Conversation

@aborem
Copy link
Collaborator

@aborem aborem commented Sep 15, 2025

Closes #63

Implements parsing for all the verticals supported by GroupMe:

  • BlockedUser
  • ChatBot
  • ConversationDirect
  • ConversationGroup

Also added name field to ChatBot since bots can have names.

Also modifies README with updated vertical-service support.

@aborem aborem requested a review from lisad September 15, 2025 18:04
mock_groupme_transfer_service.fetch_blocked_user_vertical()


def test_fetch_blocked_user_vertical(mock_groupme_transfer_service, mocker):
Copy link
Member

Choose a reason for hiding this comment

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

I'm trying to figure out what this test does test, other than the test harness? It tests mock_groupme_transfer_service which is test harness mock code, it tests 'dump_and_filter_model_objs" which is test utility code, and it tests 'oauth2_session_get' which is mock code again.

Copy link
Member

Choose a reason for hiding this comment

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

I think what I'm missing here is that 'mock_groupme_transfer_service' is NOT a mock. It's an instance constructed for test purposes with test values, but it's a real instance of GroupMeTransferService and it's the object under test here. Maybe call it "groupme_transfer_service_test_instance" -- that's long but if you want to have the whole name of the core class here. I also think it would be fine to call it "groupme_test_instance" or "groupme_transfer_service". It's pretty common for the instance of a class to be named directly after the class but in snakecase, without having to even call it an instance.

Copy link
Collaborator Author

@aborem aborem Sep 15, 2025

Choose a reason for hiding this comment

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

I agree! These test variable names could be a lot better
#74

@aborem aborem merged commit b44a026 into main Sep 15, 2025
1 check passed
@aborem aborem deleted the aborem/groupme-schema-responses branch September 15, 2025 19:40
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.

Return instance of BaseVertical model rather than Any for all GroupMe methods

3 participants