-
Notifications
You must be signed in to change notification settings - Fork 1
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
Tighten up minutes identification, add test #36
Conversation
if all( | ||
substr in cover_page_text.lower() | ||
for substr in (name.lower(), "minutes") | ||
): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I dig this solution!
assert "{} already exists as a key".format(event_key) in str(excinfo.value) | ||
|
||
|
||
def test_multiple_minutes_candidates_handling(event_scraper, api_event): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All looks good! Ty for highlighting the changes amidst the linting ❤️
if all( | ||
substr in cover_page_text.lower() | ||
for substr in (name.lower(), "minutes") | ||
): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I dig this solution!
{ | ||
"EventId": 2907, | ||
"EventGuid": "01EE5D79-B958-46F9-B8EB-384B745A57EC", | ||
"EventLastModifiedUtc": "2024-09-21T00:49:38.617", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Always a fan of more data to test with
Overview
This title addresses the bug in Metro-Records/la-metro-councilmatic#1196
Namely, when there are multiple attachments to a matter representing the approval of minutes, it looks for both "minutes" and the name of the meeting body whose minutes we're looking for on the first page.
I also added a test, using the event with an error as fixture data, since it's a great test case.
Testing Instructions