Repository navigation
Conversation
Fix GCSToBQOp list templating; Add unit tests for GCSToBQOp
Fix flake8 issue
Update unit tests for GCSToBQOp
Codecov Report
@@ Coverage Diff @@
## master #4770 +/- ##
==========================================
+ Coverage 74.45% 74.64% +0.19%
==========================================
Files 450 450
Lines 28972 28988 +16
==========================================
+ Hits 21570 21637 +67
+ Misses 7402 7351 -51
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #4770 +/- ##
==========================================
+ Coverage 74.45% 74.64% +0.19%
==========================================
Files 450 450
Lines 28972 28991 +19
==========================================
+ Hits 21570 21640 +70
+ Misses 7402 7351 -51
Continue to review full report at Codecov.
|
| from airflow.utils.decorators import apply_defaults | ||
|
|
||
| try: | ||
| basestring |
There was a problem hiding this comment.
Is there any reason why you have not used the six package here? Using this package makes it easier to track where we have the code for the older version of Python. We plan to drop support for the older version, so we will simply delete all references to the six package.
There was a problem hiding this comment.
@mik-laj Thanks for the suggestion. I've updated my code.
…an committed Change basestring to six.string_types
|
Wouldn't this be an issue for templated lists in general? |
@Fokko That's true. My suggestion is to move the conversion function to utils.helpers and perform conversion for those jinja templating fields that are of list type. What do you think? |
|
I would prefer to solve this on a global level, yes! 👍 |
Fix GCSToBQOp list templating
Add unit tests for GCSToBQOp
Make sure you have checked all steps below.
Jira
Description
Tests
tests/contrib/operators/test_gcs_to_bq_operator.py
Commits
Documentation
Code Quality
flake8