This repository has been archived by the owner on Jun 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow user to specify the violation payload format (csv / json) (#1301)
* Added test for GCS upload with json/csv respectively * pylint fixes * implement csv/json uploads, fix tests/test data * test for invalid data format * minor fix * Make _get_output_filename() observe the data format * Make _get_output_filename() simpler * Move _get_output_filename() into the base class This will facilitate reuse of the same method in the EmailViolations class. * Use the base class _get_output_filename() method Also, add a method that creates the attachment in json format. * implement csv/json format; fix tests & test data * pylint fix * Better test coverage * better naming * review comments, batch #1 * review comments, batch #2 * fix custom exception class * review comments, batch #3 * minor fix * Remove redundant error log * Update email_violations.py
- Loading branch information
1 parent
c234eb3
commit ca9c013
Showing
7 changed files
with
573 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.