File tree Expand file tree Collapse file tree 5 files changed +32
-4
lines changed
Expand file tree Collapse file tree 5 files changed +32
-4
lines changed Original file line number Diff line number Diff line change @@ -11,5 +11,13 @@ env_vars: {
1111
1212env_vars: {
1313 key: " NOX_SESSION"
14- value: " composer and py27 and not appengine"
14+ value: " composer and py36 and not appengine"
15+ }
16+
17+ # Explicitly use choose unicode dependency to let the apache-airflow package
18+ # installation continue. See:
19+ # https://github.com/apache/incubator-airflow/pull/3660
20+ env_vars: {
21+ key: " SLUGIFY_USES_TEXT_UNIDECODE"
22+ value: " yes"
1523}
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ cache:
1212 - " $HOME/.cache"
1313env :
1414 global :
15+ # Explicitly use choose unicode dependency to let the apache-airflow
16+ # package installation continue. See:
17+ # https://github.com/apache/incubator-airflow/pull/3660
18+ - SLUGIFY_USES_TEXT_UNIDECODE=yes
1519 secure : fsBH64/WqTe7lRcn4awZU7q6+euS/LHgMq2Ee2ubaoxUei2GbK5jBgnGHxOKVL5sZ4KNfTc7d6NR5BB1ZouYr2v4q1ip7Il9kFG4g5qV4cIXzHusXkrjvIzQLupNpcD9JJZr1fmYh4AqXRs2kP/nZqb7xB6Jm/O+h+aeC1bhhBg=
1620addons :
1721 apt :
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15+ import os .path
16+ import sys
17+
18+ import pytest
19+
20+
21+ @pytest .fixture (scope = 'module' , autouse = True )
22+ def local_deps ():
23+ """Add local directory to the PYTHONPATH to allow absolute imports.
24+
25+ Relative imports do not work in Airflow workflow definitions.
26+ """
27+ workflows_dir = os .path .abspath (os .path .dirname (__file__ ))
28+ sys .path .append (workflows_dir )
29+ yield
30+ sys .path .remove (workflows_dir )
31+
1532
1633def test_dag_import ():
1734 """Test that the DAG file can be successfully imported.
Original file line number Diff line number Diff line change @@ -157,9 +157,7 @@ def _setup_appengine_sdk(session):
157157GAE_STANDARD_SAMPLES = [
158158 sample for sample in ALL_TESTED_SAMPLES
159159 if sample .startswith ('./appengine/standard/' )]
160- PY2_ONLY_SAMPLES = GAE_STANDARD_SAMPLES + [
161- sample for sample in ALL_TESTED_SAMPLES
162- if sample .startswith ('./composer/workflows' )]
160+ PY2_ONLY_SAMPLES = GAE_STANDARD_SAMPLES
163161PY3_ONLY_SAMPLES = [
164162 sample for sample in ALL_TESTED_SAMPLES
165163 if (sample .startswith ('./appengine/standard_python37' )
Original file line number Diff line number Diff line change 11# Environment variables for system tests.
22export GCLOUD_PROJECT=your-project-id
3+ export GOOGLE_CLOUD_PROJECT=$GCLOUD_PROJECT
34export CLOUD_STORAGE_BUCKET=$GCLOUD_PROJECT
45export API_KEY=
56export BIGTABLE_CLUSTER=bigtable-test
You can’t perform that action at this time.
0 commit comments