From 95ab664bb6a8c94509b34ceb8c189f67db00c71a Mon Sep 17 00:00:00 2001 From: Chenglong Yan Date: Sun, 5 Jun 2022 23:45:24 +0800 Subject: [PATCH] Migrate Postgres system tests to new design (#24223) closes: #22433 related: #22458 --- .../operators/test_postgres_system.py | 34 ------------------- 1 file changed, 34 deletions(-) delete mode 100644 tests/providers/postgres/operators/test_postgres_system.py 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 1d66c2338788cd..00000000000000 --- 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)