-
Notifications
You must be signed in to change notification settings - Fork 24
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
Colt Parser #61
Colt Parser #61
Conversation
@pke11y good work! going on the right direction! |
tests/unit/test_providers.py
Outdated
@@ -10,6 +10,7 @@ | |||
from circuit_maintenance_parser.provider import ( | |||
GenericProvider, | |||
Cogent, | |||
Colt, |
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.
I know this was the pattern before, but this is gonna change, so better if you do not update this file, less conflicts to 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 ok, I see the other PR now. Will remove.
#56 PR is merged ;) |
# organizer = ( | ||
# str(component.get("ORGANIZER")) if component.get("ORGANIZER") else self.default_organizer | ||
# ) | ||
# provider = ( | ||
# str(component.get("X-MAINTNOTE-PROVIDER")) | ||
# if component.get("X-MAINTNOTE-PROVIDER") | ||
# else self.default_provider | ||
# ) |
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.
# organizer = ( | |
# str(component.get("ORGANIZER")) if component.get("ORGANIZER") else self.default_organizer | |
# ) | |
# provider = ( | |
# str(component.get("X-MAINTNOTE-PROVIDER")) | |
# if component.get("X-MAINTNOTE-PROVIDER") | |
# else self.default_provider | |
# ) |
|
||
data = { | ||
"circuits": [], | ||
# "provider": provider, |
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.
# "provider": provider, |
# "organizer": organizer, | ||
# "uid": str(component.get("UID")), |
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.
# "organizer": organizer, | |
# "uid": str(component.get("UID")), |
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.
LGTM
Initial commit for the Colt parser. Adds new CSV type base parser.
WIP: further tests to be added once #56 is merged. Currently this is required to ensure e2e email test is successful.
Includes individual tests for each attachment - iCal and CSV.
Adds
email
type to the e2e tests using.eml
file with.ics
and.csv
attachments.