8000 Updated requirement due to alert (#2131) · askmeegs/python-docs-samples@543a565 · GitHub
[go: up one dir, main page]

Skip to content

Commit 543a565

Browse files
engelketswast
authored andcommitted
Updated requirement due to alert (GoogleCloudPlatform#2131)
* Updated requirement due to alert * Add conftest.py to initialize the sqlite database.
1 parent f615b6a commit 543a565

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

composer/workflows/conftest.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright 2019 Google Inc. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
16+
import pytest
17+
import airflow.utils.db
18+
19+
20+
@pytest.fixture(autouse=True, scope="session")
21+
def initalize_airflow_database():
22+
airflow.utils.db.initdb()

composer/workflows/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apache-airflow[gcp_api]==1.10.2
1+
apache-airflow[gcp_api]==1.10.3
22
kubernetes==8.0.1
33
scipy==1.2.0
44
numpy==1.16.1

0 commit comments

Comments
 (0)
0