You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2022/06/05 15:45:30 UTC

[airflow] branch main updated: Migrate Postgres system tests to new design (#24223)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 95ab664bb6 Migrate Postgres system tests to new design (#24223)
95ab664bb6 is described below

commit 95ab664bb6a8c94509b34ceb8c189f67db00c71a
Author: Chenglong Yan <al...@gmail.com>
AuthorDate: Sun Jun 5 23:45:24 2022 +0800

    Migrate Postgres system tests to new design (#24223)
    
    closes: #22433
    related: #22458
---
 .../postgres/operators/test_postgres_system.py     | 34 ----------------------
 1 file changed, 34 deletions(-)

diff --git a/tests/providers/postgres/operators/test_postgres_system.py b/tests/providers/postgres/operators/test_postgres_system.py
deleted file mode 100644
index 1d66c23387..0000000000
--- a/tests/providers/postgres/operators/test_postgres_system.py
+++ /dev/null
@@ -1,34 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-import os
-
-import pytest
-
-from tests.test_utils import AIRFLOW_MAIN_FOLDER
-from tests.test_utils.system_tests_class import SystemTest
-
-POSTGRES_OPERATOR_DAG_FOLDER = os.path.join(
-    AIRFLOW_MAIN_FOLDER, "airflow", "providers", "postgres", "example_dags"
-)
-
-
-@pytest.mark.backend("postgres")
-@pytest.mark.system("postgres")
-class PostgresOperatorExampleDagSystemTest(SystemTest):
-    def test_run_example_dag_postgres_operator(self):
-        self.run_dag('postgres_operator_dag', POSTGRES_OPERATOR_DAG_FOLDER)