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: {
11
11
12
12
env_vars: {
13
13
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"
15
23
}
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ cache:
12
12
- " $HOME/.cache"
13
13
env :
14
14
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
15
19
secure : fsBH64/WqTe7lRcn4awZU7q6+euS/LHgMq2Ee2ubaoxUei2GbK5jBgnGHxOKVL5sZ4KNfTc7d6NR5BB1ZouYr2v4q1ip7Il9kFG4g5qV4cIXzHusXkrjvIzQLupNpcD9JJZr1fmYh4AqXRs2kP/nZqb7xB6Jm/O+h+aeC1bhhBg=
16
20
addons :
17
21
apt :
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
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
+
15
32
16
33
def test_dag_import ():
17
34
"""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):
157
157
GAE_STANDARD_SAMPLES = [
158
158
sample for sample in ALL_TESTED_SAMPLES
159
159
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
163
161
PY3_ONLY_SAMPLES = [
164
162
sample for sample in ALL_TESTED_SAMPLES
165
163
if (sample .startswith ('./appengine/standard_python37' )
Original file line number Diff line number Diff line change 1
1
# Environment variables for system tests.
2
2
export GCLOUD_PROJECT=your-project-id
3
+ export GOOGLE_CLOUD_PROJECT=$GCLOUD_PROJECT
3
4
export CLOUD_STORAGE_BUCKET=$GCLOUD_PROJECT
4
5
export API_KEY=
5
6
export BIGTABLE_CLUSTER=bigtable-test
You can’t perform that action at this time.
0 commit comments